Class LongSupplier
Listener for Java LongSupplier https://docs.oracle.com/javase/8/docs/api/java/util/function/LongSupplier.html. Extends JVMBridgeListener
public class LongSupplier : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, ILongSupplier, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
LongSupplier
- Implements
- Derived
- Inherited Members
Constructors
LongSupplier(Func<long>, bool)
Initialize a new instance of LongSupplier
public LongSupplier(Func<long> func = null, bool attachEventHandler = true)
Parameters
func
Func<long>The Func<TResult> to be executed
attachEventHandler
boolSet to false to disable invocation of AddEventHandler(string, EventHandler): the call can be done in the derived class
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
InitHandlers
Enable/disable handlers initialization, default is true
protected virtual bool InitHandlers { get; }
Property Value
OnGetAsLong
The Func<TResult> to be executed
public virtual Func<long> OnGetAsLong { get; set; }
Property Value
Methods
GetAsLong()
Executes the LongSupplier action in the CLR
public virtual long GetAsLong()
Returns
- long
The getAsInt result