Class Optional
public class Optional : JVMBridgeBase<Optional>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Optional>Optional
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Optional>.SExecute<TNewClass, TReturn, TConverter>(IJavaType, string, params object[])JVMBridgeBase<Optional>.IsAssignableFrom(IJavaType)JVMBridgeBase<Optional>.IsAssignableFrom<T>()JVMBridgeBase<Optional>.Execute<T>(params T[])JVMBridgeBase<Optional>.DynBridgeClazzJVMBridgeBase<Optional>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
Empty()
public static Optional Empty()
Returns
Filter(Predicate)
public Optional Filter(Predicate arg0)
Parameters
Returns
FlatMap(Function)
public Optional FlatMap(Function arg0)
Parameters
Returns
Get()
public object Get()
Returns
IfPresent(Consumer)
public void IfPresent(Consumer arg0)
Parameters
IfPresentOrElse(Consumer, Runnable)
public void IfPresentOrElse(Consumer arg0, Runnable arg1)
Parameters
IsEmpty()
public bool IsEmpty()
Returns
IsPresent()
public bool IsPresent()
Returns
Map(Function)
public Optional Map(Function arg0)
Parameters
Returns
Of(object)
public static Optional Of(object arg0)
Parameters
Returns
OfNullable(object)
public static Optional OfNullable(object arg0)
Parameters
Returns
Or(Supplier)
public Optional Or(Supplier arg0)
Parameters
Returns
OrElse(object)
public object OrElse(object arg0)
Parameters
Returns
OrElseGet(Supplier)
public object OrElseGet(Supplier arg0)
Parameters
Returns
OrElseThrow()
public object OrElseThrow()
Returns
OrElseThrow(Supplier)
public object OrElseThrow(Supplier arg0)
Parameters
Returns
Exceptions
Stream()
public Stream Stream()