Class BinaryOperator<T>
Listener for Java BinaryOperator https://docs.oracle.com/javase/8/docs/api/java/util/function/BinaryOperator.html. Extends BinaryOperator
public class BinaryOperator<T> : BinaryOperator, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IBinaryOperator<T>, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Type Parameters
TThe data type associated to the event
- Inheritance
-
BinaryOperator<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
BinaryOperator()
Initialize a new instance of BinaryOperator<T>
public BinaryOperator()
Properties
OnApply
The Func<T, TResult> to be executed
public virtual Func<T, T, T> OnApply { get; set; }
Property Value
- Func<T, T, T>
OnApplyDispose
Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.
public Action<T> OnApplyDispose { get; set; }
Property Value
- Action<T>
Remarks
Set OnApplyDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.
Methods
Apply(T, T)
Executes the Function action in the CLR
public virtual T Apply(T o1, T o2)
Parameters
o1TThe Function object
o2TThe Function object
Returns
- T
The apply
T