Class OptionalInt
public class OptionalInt : JVMBridgeBase<OptionalInt>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<OptionalInt>OptionalInt
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<OptionalInt>.SExecuteWithSignatureArray<T>(IJavaType, string, string, params object[])JVMBridgeBase<OptionalInt>.IsAssignableFrom(IJavaType)JVMBridgeBase<OptionalInt>.IsAssignableFrom<T>()JVMBridgeBase<OptionalInt>.Execute<T>(params T[])JVMBridgeBase<OptionalInt>.DynBridgeClazzJVMBridgeBase<OptionalInt>.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
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
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 OptionalInt Empty()
Returns
IfPresent(IntConsumer)
public void IfPresent(IntConsumer arg0)
Parameters
arg0
IntConsumer
IfPresentOrElse(IntConsumer, Runnable)
public void IfPresentOrElse(IntConsumer arg0, Runnable arg1)
Parameters
arg0
IntConsumerarg1
Runnable
IsEmpty()
public bool IsEmpty()
Returns
IsPresent()
public bool IsPresent()
Returns
Of(int)
public static OptionalInt Of(int arg0)
Parameters
Returns
OrElse(int)
public int OrElse(int arg0)
Parameters
Returns
OrElseGet(IntSupplier)
public int OrElseGet(IntSupplier arg0)
Parameters
arg0
IntSupplier
Returns
OrElseThrow()
public int OrElseThrow()
Returns
OrElseThrow<Arg0ExtendsX, X>(Supplier<Arg0ExtendsX>)
public int OrElseThrow<Arg0ExtendsX, X>(Supplier<Arg0ExtendsX> arg0) where Arg0ExtendsX : X
Parameters
Returns
Type Parameters
Arg0ExtendsX
X
X
Exceptions
Stream()
public IntStream Stream()