Class Instant
public class Instant : JVMBridgeBase<Instant>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Instant>Instant
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Instant>.IsAssignableFrom(IJavaType)JVMBridgeBase<Instant>.IsAssignableFrom<T>()JVMBridgeBase<Instant>.Execute<T>(params T[])JVMBridgeBase<Instant>.DynBridgeClazzJVMBridgeBase<Instant>.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
Instant()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Instant()
Instant(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 Instant(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
EPOCH
public static Instant EPOCH { get; }
Property Value
EpochSecond
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Instant.html#getEpochSecond()
public long EpochSecond { 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
MAX
public static Instant MAX { get; }
Property Value
MIN
public static Instant MIN { get; }
Property Value
Nano
public int Nano { get; }
Property Value
Methods
AdjustInto(Temporal)
public Temporal AdjustInto(Temporal arg0)
Parameters
Returns
AtOffset(ZoneOffset)
public OffsetDateTime AtOffset(ZoneOffset arg0)
Parameters
arg0
ZoneOffset
Returns
AtZone(ZoneId)
public ZonedDateTime AtZone(ZoneId arg0)
Parameters
Returns
CompareTo(Instant)
public int CompareTo(Instant arg0)
Parameters
Returns
CompareTo(object)
public int CompareTo(object arg0)
Parameters
Returns
From(TemporalAccessor)
public static Instant From(TemporalAccessor arg0)
Parameters
Returns
Get(TemporalField)
public int Get(TemporalField arg0)
Parameters
Returns
GetLong(TemporalField)
public long GetLong(TemporalField arg0)
Parameters
Returns
IsAfter(Instant)
public bool IsAfter(Instant arg0)
Parameters
Returns
IsBefore(Instant)
public bool IsBefore(Instant arg0)
Parameters
Returns
IsSupported(TemporalField)
public bool IsSupported(TemporalField arg0)
Parameters
Returns
IsSupported(TemporalUnit)
public bool IsSupported(TemporalUnit arg0)
Parameters
arg0
TemporalUnit
Returns
Minus(TemporalAmount)
public Temporal Minus(TemporalAmount arg0)
Parameters
Returns
Minus(long, TemporalUnit)
public Temporal Minus(long arg0, TemporalUnit arg1)
Parameters
arg0
longarg1
TemporalUnit
Returns
MinusMillis(long)
public Instant MinusMillis(long arg0)
Parameters
Returns
MinusNanos(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Instant.html#minusNanos(long)
public Instant MinusNanos(long arg0)
Parameters
Returns
MinusSeconds(long)
public Instant MinusSeconds(long arg0)
Parameters
Returns
Now()
public static Instant Now()
Returns
Now(Clock)
public static Instant Now(Clock arg0)
Parameters
Returns
OfEpochMilli(long)
public static Instant OfEpochMilli(long arg0)
Parameters
Returns
OfEpochSecond(long)
public static Instant OfEpochSecond(long arg0)
Parameters
Returns
OfEpochSecond(long, long)
public static Instant OfEpochSecond(long arg0, long arg1)
Parameters
Returns
Parse(CharSequence)
public static Instant Parse(CharSequence arg0)
Parameters
arg0
CharSequence
Returns
Plus(TemporalAmount)
public Temporal Plus(TemporalAmount arg0)
Parameters
Returns
Plus(long, TemporalUnit)
public Temporal Plus(long arg0, TemporalUnit arg1)
Parameters
arg0
longarg1
TemporalUnit
Returns
PlusMillis(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Instant.html#plusMillis(long)
public Instant PlusMillis(long arg0)
Parameters
Returns
PlusNanos(long)
public Instant PlusNanos(long arg0)
Parameters
Returns
PlusSeconds(long)
public Instant PlusSeconds(long arg0)
Parameters
Returns
Query<R>(TemporalQuery<R>)
public R Query<R>(TemporalQuery<R> arg0)
Parameters
arg0
TemporalQuery<R>
Returns
- R
R
Type Parameters
R
Range(TemporalField)
public ValueRange Range(TemporalField arg0)
Parameters
Returns
ToEpochMilli()
public long ToEpochMilli()
Returns
TruncatedTo(TemporalUnit)
public Instant TruncatedTo(TemporalUnit arg0)
Parameters
arg0
TemporalUnit
Returns
Until(Temporal, TemporalUnit)
public long Until(Temporal arg0, TemporalUnit arg1)
Parameters
arg0
Temporalarg1
TemporalUnit
Returns
With(TemporalAdjuster)
public Temporal With(TemporalAdjuster arg0)
Parameters
Returns
With(TemporalField, long)
public Temporal With(TemporalField arg0, long arg1)
Parameters
arg0
TemporalFieldarg1
long
Returns
Operators
implicit operator Serializable(Instant)
Converter from Instant to Serializable
public static implicit operator Serializable(Instant t)
Parameters
t
Instant
Returns
implicit operator Comparable(Instant)
Converter from Instant to Comparable
public static implicit operator Comparable(Instant t)
Parameters
t
Instant
Returns
implicit operator Temporal(Instant)
public static implicit operator Temporal(Instant t)
Parameters
t
Instant
Returns
implicit operator TemporalAdjuster(Instant)
Converter from Instant to TemporalAdjuster
public static implicit operator TemporalAdjuster(Instant t)
Parameters
t
Instant
Returns
implicit operator Instant(DateTime)
public static implicit operator Instant(DateTime dt)
Parameters
dt
DateTime