Class IntFunction<TReturn>
Listener for Java IntFunction https://docs.oracle.com/javase/8/docs/api/java/util/function/IntFunction.html. Extends IntFunction
public class IntFunction<TReturn> : IntFunction, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IIntFunction<TReturn>, IFunction<int, TReturn>, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Type Parameters
TReturnThe return data type associated to the event
- Inheritance
-
IntFunction<TReturn>
- Implements
-
IIntFunction<TReturn>
- Derived
- Inherited Members
- Extension Methods
Constructors
IntFunction()
Initialize a new instance of Function<TObject, TReturn>
public IntFunction()
Properties
OnApply
The Func<T, TResult> to be executed
public virtual Func<int, TReturn> OnApply { get; set; }
Property Value
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(int)
Executes the Function action in the CLR
public virtual TReturn Apply(int obj)
Parameters
objintThe Function object
Returns
- TReturn
The apply
TReturn