Table of Contents

Class Duration

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

Duration()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public Duration()

Duration(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 Duration(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

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

Nano

public int Nano { get; }

Property Value

int

Seconds

public long Seconds { get; }

Property Value

long

Units

public List<TemporalUnit> Units { get; }

Property Value

List<TemporalUnit>

ZERO

public static Duration ZERO { get; }

Property Value

Duration

Methods

Abs()

public Duration Abs()

Returns

Duration

Duration

AddTo(Temporal)

public Temporal AddTo(Temporal arg0)

Parameters

arg0 Temporal

Temporal

Returns

Temporal

Temporal

Between(Temporal, Temporal)

public static Duration Between(Temporal arg0, Temporal arg1)

Parameters

arg0 Temporal

Temporal

arg1 Temporal

Temporal

Returns

Duration

Duration

CompareTo(Duration)

public int CompareTo(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

int

int

CompareTo(object)

public int CompareTo(object arg0)

Parameters

arg0 object

object

Returns

int

int

DividedBy(Duration)

public long DividedBy(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

long

long

DividedBy(long)

public Duration DividedBy(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

From(TemporalAmount)

public static Duration From(TemporalAmount arg0)

Parameters

arg0 TemporalAmount

TemporalAmount

Returns

Duration

Duration

Get(TemporalUnit)

public long Get(TemporalUnit arg0)

Parameters

arg0 TemporalUnit

TemporalUnit

Returns

long

long

IsNegative()

public bool IsNegative()

Returns

bool

bool

IsZero()

public bool IsZero()

Returns

bool

bool

Minus(Duration)

public Duration Minus(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Duration

Duration

Minus(long, TemporalUnit)

public Duration Minus(long arg0, TemporalUnit arg1)

Parameters

arg0 long

long

arg1 TemporalUnit

TemporalUnit

Returns

Duration

Duration

MinusDays(long)

public Duration MinusDays(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

MinusHours(long)

public Duration MinusHours(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

MinusMillis(long)

public Duration MinusMillis(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

MinusMinutes(long)

public Duration MinusMinutes(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

MinusNanos(long)

public Duration MinusNanos(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

MinusSeconds(long)

public Duration MinusSeconds(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

MultipliedBy(long)

public Duration MultipliedBy(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

Negated()

public Duration Negated()

Returns

Duration

Duration

Of(long, TemporalUnit)

public static Duration Of(long arg0, TemporalUnit arg1)

Parameters

arg0 long

long

arg1 TemporalUnit

TemporalUnit

Returns

Duration

Duration

OfDays(long)

public static Duration OfDays(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

OfHours(long)

public static Duration OfHours(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

OfMillis(long)

public static Duration OfMillis(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

OfMinutes(long)

public static Duration OfMinutes(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

OfNanos(long)

public static Duration OfNanos(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

OfSeconds(long)

public static Duration OfSeconds(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

OfSeconds(long, long)

public static Duration OfSeconds(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

Duration

Duration

Parse(CharSequence)

public static Duration Parse(CharSequence arg0)

Parameters

arg0 CharSequence

CharSequence

Returns

Duration

Duration

Plus(Duration)

public Duration Plus(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Duration

Duration

Plus(long, TemporalUnit)

public Duration Plus(long arg0, TemporalUnit arg1)

Parameters

arg0 long

long

arg1 TemporalUnit

TemporalUnit

Returns

Duration

Duration

PlusDays(long)

public Duration PlusDays(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

PlusHours(long)

public Duration PlusHours(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

PlusMillis(long)

public Duration PlusMillis(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

PlusMinutes(long)

public Duration PlusMinutes(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

PlusNanos(long)

public Duration PlusNanos(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

PlusSeconds(long)

public Duration PlusSeconds(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

SubtractFrom(Temporal)

public Temporal SubtractFrom(Temporal arg0)

Parameters

arg0 Temporal

Temporal

Returns

Temporal

Temporal

ToDays()

public long ToDays()

Returns

long

long

ToDaysPart()

public long ToDaysPart()

Returns

long

long

ToHours()

public long ToHours()

Returns

long

long

ToHoursPart()

public int ToHoursPart()

Returns

int

int

ToMillis()

public long ToMillis()

Returns

long

long

ToMillisPart()

public int ToMillisPart()

Returns

int

int

ToMinutes()

public long ToMinutes()

Returns

long

long

ToMinutesPart()

public int ToMinutesPart()

Returns

int

int

ToNanos()

public long ToNanos()

Returns

long

long

ToNanosPart()

public int ToNanosPart()

Returns

int

int

ToSeconds()

public long ToSeconds()

Returns

long

long

ToSecondsPart()

public int ToSecondsPart()

Returns

int

int

TruncatedTo(TemporalUnit)

public Duration TruncatedTo(TemporalUnit arg0)

Parameters

arg0 TemporalUnit

TemporalUnit

Returns

Duration

Duration

WithNanos(int)

public Duration WithNanos(int arg0)

Parameters

arg0 int

int

Returns

Duration

Duration

WithSeconds(long)

public Duration WithSeconds(long arg0)

Parameters

arg0 long

long

Returns

Duration

Duration

Operators

implicit operator Serializable(Duration)

Converter from Duration to Serializable

public static implicit operator Serializable(Duration t)

Parameters

t Duration

Returns

Serializable

implicit operator Comparable(Duration)

Converter from Duration to Comparable

public static implicit operator Comparable(Duration t)

Parameters

t Duration

Returns

Comparable

implicit operator TemporalAmount(Duration)

Converter from Duration to TemporalAmount

public static implicit operator TemporalAmount(Duration t)

Parameters

t Duration

Returns

TemporalAmount

implicit operator Duration(TimeSpan)

Converter from TimeSpan to Duration

public static implicit operator Duration(TimeSpan timespan)

Parameters

timespan TimeSpan

Returns

Duration