Table of Contents

Class LongSupplier

Namespace
Java.Util.Function
Assembly
MASES.JNet.dll
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 bool

Set 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

string

InitHandlers

Enable/disable handlers initialization, default is true

protected virtual bool InitHandlers { get; }

Property Value

bool

OnGetAsLong

The Func<TResult> to be executed

public virtual Func<long> OnGetAsLong { get; set; }

Property Value

Func<long>

Methods

GetAsLong()

Executes the LongSupplier action in the CLR

public virtual long GetAsLong()

Returns

long

The getAsInt result