Table of Contents

Class OptionalLong

Namespace
Java.Util
Assembly
MASES.JNet.dll
public class OptionalLong : JVMBridgeBase<OptionalLong>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<OptionalLong>
OptionalLong
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<OptionalLong>.IsAssignableFrom(IJavaType)
JVMBridgeBase<OptionalLong>.IsAssignableFrom<T>()
JVMBridgeBase<OptionalLong>.Execute<T>(params T[])
JVMBridgeBase<OptionalLong>.DynBridgeClazz
JVMBridgeBase<OptionalLong>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

OptionalLong()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public OptionalLong()

OptionalLong(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public OptionalLong(params object[] args)

Parameters

args object[]

Properties

AsLong

public long AsLong { get; }

Property Value

long

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Empty()

public static OptionalLong Empty()

Returns

OptionalLong

OptionalLong

IfPresent(LongConsumer)

public void IfPresent(LongConsumer arg0)

Parameters

arg0 LongConsumer

LongConsumer

IfPresentOrElse(LongConsumer, Runnable)

public void IfPresentOrElse(LongConsumer arg0, Runnable arg1)

Parameters

arg0 LongConsumer

LongConsumer

arg1 Runnable

Runnable

IsEmpty()

public bool IsEmpty()

Returns

bool

bool

IsPresent()

public bool IsPresent()

Returns

bool

bool

Of(long)

public static OptionalLong Of(long arg0)

Parameters

arg0 long

long

Returns

OptionalLong

OptionalLong

OrElse(long)

public long OrElse(long arg0)

Parameters

arg0 long

long

Returns

long

long

OrElseGet(LongSupplier)

public long OrElseGet(LongSupplier arg0)

Parameters

arg0 LongSupplier

LongSupplier

Returns

long

long

OrElseThrow()

public long OrElseThrow()

Returns

long

long

OrElseThrow<Arg0ExtendsX, X>(Supplier<Arg0ExtendsX>)

public long OrElseThrow<Arg0ExtendsX, X>(Supplier<Arg0ExtendsX> arg0) where Arg0ExtendsX : X

Parameters

arg0 Supplier<Arg0ExtendsX>

Supplier

Returns

long

long

Type Parameters

Arg0ExtendsX

X

X

Exceptions

Throwable

Stream()

public LongStream Stream()

Returns

LongStream

LongStream