Class OptionalLong
public class OptionalLong : JVMBridgeBase<OptionalLong>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<OptionalLong>OptionalLong
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<OptionalLong>.IsAssignableFrom(IJavaType)JVMBridgeBase<OptionalLong>.IsAssignableFrom<T>()JVMBridgeBase<OptionalLong>.Execute<T>(params T[])JVMBridgeBase<OptionalLong>.DynBridgeClazzJVMBridgeBase<OptionalLong>.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
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
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/OptionalLong.html#getAsLong()
public long AsLong { 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 OptionalLong Empty()
Returns
IfPresent(LongConsumer)
public void IfPresent(LongConsumer arg0)
Parameters
arg0
LongConsumer
IfPresentOrElse(LongConsumer, Runnable)
public void IfPresentOrElse(LongConsumer arg0, Runnable arg1)
Parameters
arg0
LongConsumerarg1
Runnable
IsEmpty()
public bool IsEmpty()
Returns
IsPresent()
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/OptionalLong.html#isPresent()
public bool IsPresent()
Returns
Of(long)
public static OptionalLong Of(long arg0)
Parameters
Returns
OrElse(long)
public long OrElse(long arg0)
Parameters
Returns
OrElseGet(LongSupplier)
public long OrElseGet(LongSupplier arg0)
Parameters
arg0
LongSupplier
Returns
OrElseThrow()
public long OrElseThrow()
Returns
OrElseThrow<Arg0ExtendsX, X>(Supplier<Arg0ExtendsX>)
public long OrElseThrow<Arg0ExtendsX, X>(Supplier<Arg0ExtendsX> arg0) where Arg0ExtendsX : X
Parameters
Returns
Type Parameters
Arg0ExtendsX
X
X
Exceptions
Stream()
public LongStream Stream()