Class BiFunction<T, U, TReturn>
Listener for https://docs.oracle.com/javase/8/docs/api/java/util/function/BiFunction.html. Extends BiFunction
public class BiFunction<T, U, TReturn> : BiFunction, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IBiFunction<T, U, TReturn>, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Type Parameters
TThe data type associated to the event
UThe data type associated to the event
TReturnThe return data type associated to the event
- Inheritance
-
BiFunction<T, U, TReturn>
- Implements
-
IBiFunction<T, U, TReturn>
- Derived
- Inherited Members
- Extension Methods
Constructors
BiFunction()
Initialize a new instance of BiFunction<T, U, TReturn>
public BiFunction()
Properties
OnApply
The Func<T1, T2, TResult> to be executed
public virtual Func<T, U, TReturn> OnApply { get; set; }
Property Value
- Func<T, U, TReturn>
OnApplyDispose
Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.
public Action<TReturn> OnApplyDispose { get; set; }
Property Value
- Action<TReturn>
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, U)
Executes the Function action in the CLR
public virtual TReturn Apply(T o1, U o2)
Parameters
o1TThe BiFunction object
o2UThe BiFunction object
Returns
- TReturn
The apply
TReturn