Table of Contents

Class Optional

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

Optional()

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

public Optional()

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

Parameters

args object[]

Properties

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

Returns

Optional

Optional

Filter(Predicate)

public Optional Filter(Predicate arg0)

Parameters

arg0 Predicate

Predicate

Returns

Optional

Optional

FlatMap(Function)

public Optional FlatMap(Function arg0)

Parameters

arg0 Function

Function

Returns

Optional

Optional

Get()

public object Get()

Returns

object

object

IfPresent(Consumer)

public void IfPresent(Consumer arg0)

Parameters

arg0 Consumer

Consumer

IfPresentOrElse(Consumer, Runnable)

public void IfPresentOrElse(Consumer arg0, Runnable arg1)

Parameters

arg0 Consumer

Consumer

arg1 Runnable

Runnable

IsEmpty()

public bool IsEmpty()

Returns

bool

bool

IsPresent()

public bool IsPresent()

Returns

bool

bool

Map(Function)

public Optional Map(Function arg0)

Parameters

arg0 Function

Function

Returns

Optional

Optional

Of(object)

public static Optional Of(object arg0)

Parameters

arg0 object

object

Returns

Optional

Optional

OfNullable(object)

public static Optional OfNullable(object arg0)

Parameters

arg0 object

object

Returns

Optional

Optional

Or(Supplier)

public Optional Or(Supplier arg0)

Parameters

arg0 Supplier

Supplier

Returns

Optional

Optional

OrElse(object)

public object OrElse(object arg0)

Parameters

arg0 object

object

Returns

object

object

OrElseGet(Supplier)

public object OrElseGet(Supplier arg0)

Parameters

arg0 Supplier

Supplier

Returns

object

object

OrElseThrow()

public object OrElseThrow()

Returns

object

object

OrElseThrow(Supplier)

public object OrElseThrow(Supplier arg0)

Parameters

arg0 Supplier

Supplier

Returns

object

object

Exceptions

Throwable

Stream()

public Stream Stream()

Returns

Stream

Stream