Table of Contents

Class OptionalInt

Namespace
Java.Util
Assembly
MASES.JNet.dll
public class OptionalInt : JVMBridgeBase<OptionalInt>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<OptionalInt>
OptionalInt
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<OptionalInt>.IsAssignableFrom(IJavaType)
JVMBridgeBase<OptionalInt>.IsAssignableFrom<T>()
JVMBridgeBase<OptionalInt>.Execute<T>(params T[])
JVMBridgeBase<OptionalInt>.DynBridgeClazz
JVMBridgeBase<OptionalInt>.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

OptionalInt()

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

public OptionalInt()

OptionalInt(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 OptionalInt(params object[] args)

Parameters

args object[]

Properties

AsInt

public int AsInt { get; }

Property Value

int

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 OptionalInt Empty()

Returns

OptionalInt

OptionalInt

IfPresent(IntConsumer)

public void IfPresent(IntConsumer arg0)

Parameters

arg0 IntConsumer

IntConsumer

IfPresentOrElse(IntConsumer, Runnable)

public void IfPresentOrElse(IntConsumer arg0, Runnable arg1)

Parameters

arg0 IntConsumer

IntConsumer

arg1 Runnable

Runnable

IsEmpty()

public bool IsEmpty()

Returns

bool

bool

IsPresent()

public bool IsPresent()

Returns

bool

bool

Of(int)

public static OptionalInt Of(int arg0)

Parameters

arg0 int

int

Returns

OptionalInt

OptionalInt

OrElse(int)

public int OrElse(int arg0)

Parameters

arg0 int

int

Returns

int

int

OrElseGet(IntSupplier)

public int OrElseGet(IntSupplier arg0)

Parameters

arg0 IntSupplier

IntSupplier

Returns

int

int

OrElseThrow()

public int OrElseThrow()

Returns

int

int

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

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

Parameters

arg0 Supplier<Arg0ExtendsX>

Supplier

Returns

int

int

Type Parameters

Arg0ExtendsX

X

X

Exceptions

Throwable

Stream()

public IntStream Stream()

Returns

IntStream

IntStream