Table of Contents

Class Instant

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

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

public override string BridgeClassName { get; }

Property Value

string

EPOCH

public static Instant EPOCH { get; }

Property Value

Instant

EpochSecond

public long EpochSecond { get; }

Property Value

long

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

MAX

public static Instant MAX { get; }

Property Value

Instant

MIN

public static Instant MIN { get; }

Property Value

Instant

Nano

public int Nano { get; }

Property Value

int

Methods

AdjustInto(Temporal)

public Temporal AdjustInto(Temporal arg0)

Parameters

arg0 Temporal

Temporal

Returns

Temporal

Temporal

AtOffset(ZoneOffset)

public OffsetDateTime AtOffset(ZoneOffset arg0)

Parameters

arg0 ZoneOffset

ZoneOffset

Returns

OffsetDateTime

OffsetDateTime

AtZone(ZoneId)

public ZonedDateTime AtZone(ZoneId arg0)

Parameters

arg0 ZoneId

ZoneId

Returns

ZonedDateTime

ZonedDateTime

CompareTo(Instant)

public int CompareTo(Instant arg0)

Parameters

arg0 Instant

Instant

Returns

int

int

CompareTo(object)

public int CompareTo(object arg0)

Parameters

arg0 object

object

Returns

int

int

From(TemporalAccessor)

public static Instant From(TemporalAccessor arg0)

Parameters

arg0 TemporalAccessor

TemporalAccessor

Returns

Instant

Instant

Get(TemporalField)

public int Get(TemporalField arg0)

Parameters

arg0 TemporalField

TemporalField

Returns

int

int

GetLong(TemporalField)

public long GetLong(TemporalField arg0)

Parameters

arg0 TemporalField

TemporalField

Returns

long

long

IsAfter(Instant)

public bool IsAfter(Instant arg0)

Parameters

arg0 Instant

Instant

Returns

bool

bool

IsBefore(Instant)

public bool IsBefore(Instant arg0)

Parameters

arg0 Instant

Instant

Returns

bool

bool

IsSupported(TemporalField)

public bool IsSupported(TemporalField arg0)

Parameters

arg0 TemporalField

TemporalField

Returns

bool

bool

IsSupported(TemporalUnit)

public bool IsSupported(TemporalUnit arg0)

Parameters

arg0 TemporalUnit

TemporalUnit

Returns

bool

bool

Minus(TemporalAmount)

public Temporal Minus(TemporalAmount arg0)

Parameters

arg0 TemporalAmount

TemporalAmount

Returns

Temporal

Temporal

Minus(long, TemporalUnit)

public Temporal Minus(long arg0, TemporalUnit arg1)

Parameters

arg0 long

long

arg1 TemporalUnit

TemporalUnit

Returns

Temporal

Temporal

MinusMillis(long)

public Instant MinusMillis(long arg0)

Parameters

arg0 long

long

Returns

Instant

Instant

MinusNanos(long)

public Instant MinusNanos(long arg0)

Parameters

arg0 long

long

Returns

Instant

Instant

MinusSeconds(long)

public Instant MinusSeconds(long arg0)

Parameters

arg0 long

long

Returns

Instant

Instant

Now()

public static Instant Now()

Returns

Instant

Instant

Now(Clock)

public static Instant Now(Clock arg0)

Parameters

arg0 Clock

Clock

Returns

Instant

Instant

OfEpochMilli(long)

public static Instant OfEpochMilli(long arg0)

Parameters

arg0 long

long

Returns

Instant

Instant

OfEpochSecond(long)

public static Instant OfEpochSecond(long arg0)

Parameters

arg0 long

long

Returns

Instant

Instant

OfEpochSecond(long, long)

public static Instant OfEpochSecond(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

Instant

Instant

Parse(CharSequence)

public static Instant Parse(CharSequence arg0)

Parameters

arg0 CharSequence

CharSequence

Returns

Instant

Instant

Plus(TemporalAmount)

public Temporal Plus(TemporalAmount arg0)

Parameters

arg0 TemporalAmount

TemporalAmount

Returns

Temporal

Temporal

Plus(long, TemporalUnit)

public Temporal Plus(long arg0, TemporalUnit arg1)

Parameters

arg0 long

long

arg1 TemporalUnit

TemporalUnit

Returns

Temporal

Temporal

PlusMillis(long)

public Instant PlusMillis(long arg0)

Parameters

arg0 long

long

Returns

Instant

Instant

PlusNanos(long)

public Instant PlusNanos(long arg0)

Parameters

arg0 long

long

Returns

Instant

Instant

PlusSeconds(long)

public Instant PlusSeconds(long arg0)

Parameters

arg0 long

long

Returns

Instant

Instant

Query<R>(TemporalQuery<R>)

public R Query<R>(TemporalQuery<R> arg0)

Parameters

arg0 TemporalQuery<R>

TemporalQuery

Returns

R

R

Type Parameters

R

Range(TemporalField)

public ValueRange Range(TemporalField arg0)

Parameters

arg0 TemporalField

TemporalField

Returns

ValueRange

ValueRange

ToEpochMilli()

public long ToEpochMilli()

Returns

long

long

TruncatedTo(TemporalUnit)

public Instant TruncatedTo(TemporalUnit arg0)

Parameters

arg0 TemporalUnit

TemporalUnit

Returns

Instant

Instant

Until(Temporal, TemporalUnit)

public long Until(Temporal arg0, TemporalUnit arg1)

Parameters

arg0 Temporal

Temporal

arg1 TemporalUnit

TemporalUnit

Returns

long

long

With(TemporalAdjuster)

public Temporal With(TemporalAdjuster arg0)

Parameters

arg0 TemporalAdjuster

TemporalAdjuster

Returns

Temporal

Temporal

With(TemporalField, long)

public Temporal With(TemporalField arg0, long arg1)

Parameters

arg0 TemporalField

TemporalField

arg1 long

long

Returns

Temporal

Temporal

Operators

implicit operator Serializable(Instant)

Converter from Instant to Serializable

public static implicit operator Serializable(Instant t)

Parameters

t Instant

Returns

Serializable

implicit operator Comparable(Instant)

Converter from Instant to Comparable

public static implicit operator Comparable(Instant t)

Parameters

t Instant

Returns

Comparable

implicit operator Temporal(Instant)

Converter from Instant to Temporal

public static implicit operator Temporal(Instant t)

Parameters

t Instant

Returns

Temporal

implicit operator TemporalAdjuster(Instant)

Converter from Instant to TemporalAdjuster

public static implicit operator TemporalAdjuster(Instant t)

Parameters

t Instant

Returns

TemporalAdjuster

implicit operator Instant(DateTime)

Converter from DateTime to Instant

public static implicit operator Instant(DateTime dt)

Parameters

dt DateTime

Returns

Instant