Class Duration
public class Duration : JVMBridgeBase<Duration>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Duration>Duration
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Duration>.SExecute<TNewClass, TReturn, TConverter>(IJavaType, string, params object[])JVMBridgeBase<Duration>.IsAssignableFrom(IJavaType)JVMBridgeBase<Duration>.IsAssignableFrom<T>()JVMBridgeBase<Duration>.Execute<T>(params T[])JVMBridgeBase<Duration>.DynBridgeClazzJVMBridgeBase<Duration>.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
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
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
Nano
public int Nano { get; }
Property Value
Seconds
public long Seconds { get; }
Property Value
Units
public List<TemporalUnit> Units { get; }
Property Value
ZERO
public static Duration ZERO { get; }
Property Value
Methods
Abs()
public Duration Abs()
Returns
AddTo(Temporal)
public Temporal AddTo(Temporal arg0)
Parameters
Returns
Between(Temporal, Temporal)
public static Duration Between(Temporal arg0, Temporal arg1)
Parameters
Returns
CompareTo(Duration)
public int CompareTo(Duration arg0)
Parameters
Returns
CompareTo(object)
public int CompareTo(object arg0)
Parameters
Returns
DividedBy(Duration)
public long DividedBy(Duration arg0)
Parameters
Returns
DividedBy(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html#dividedBy(long)
public Duration DividedBy(long arg0)
Parameters
Returns
From(TemporalAmount)
public static Duration From(TemporalAmount arg0)
Parameters
Returns
Get(TemporalUnit)
public long Get(TemporalUnit arg0)
Parameters
arg0
TemporalUnit
Returns
IsNegative()
public bool IsNegative()
Returns
IsZero()
public bool IsZero()
Returns
Minus(Duration)
public Duration Minus(Duration arg0)
Parameters
Returns
Minus(long, TemporalUnit)
public Duration Minus(long arg0, TemporalUnit arg1)
Parameters
arg0
longarg1
TemporalUnit
Returns
MinusDays(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html#minusDays(long)
public Duration MinusDays(long arg0)
Parameters
Returns
MinusHours(long)
public Duration MinusHours(long arg0)
Parameters
Returns
MinusMillis(long)
public Duration MinusMillis(long arg0)
Parameters
Returns
MinusMinutes(long)
public Duration MinusMinutes(long arg0)
Parameters
Returns
MinusNanos(long)
public Duration MinusNanos(long arg0)
Parameters
Returns
MinusSeconds(long)
public Duration MinusSeconds(long arg0)
Parameters
Returns
MultipliedBy(long)
public Duration MultipliedBy(long arg0)
Parameters
Returns
Negated()
public Duration Negated()
Returns
Of(long, TemporalUnit)
public static Duration Of(long arg0, TemporalUnit arg1)
Parameters
arg0
longarg1
TemporalUnit
Returns
OfDays(long)
public static Duration OfDays(long arg0)
Parameters
Returns
OfHours(long)
public static Duration OfHours(long arg0)
Parameters
Returns
OfMillis(long)
public static Duration OfMillis(long arg0)
Parameters
Returns
OfMinutes(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html#ofMinutes(long)
public static Duration OfMinutes(long arg0)
Parameters
Returns
OfNanos(long)
public static Duration OfNanos(long arg0)
Parameters
Returns
OfSeconds(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html#ofSeconds(long)
public static Duration OfSeconds(long arg0)
Parameters
Returns
OfSeconds(long, long)
public static Duration OfSeconds(long arg0, long arg1)
Parameters
Returns
Parse(CharSequence)
public static Duration Parse(CharSequence arg0)
Parameters
arg0
CharSequence
Returns
Plus(Duration)
public Duration Plus(Duration arg0)
Parameters
Returns
Plus(long, TemporalUnit)
public Duration Plus(long arg0, TemporalUnit arg1)
Parameters
arg0
longarg1
TemporalUnit
Returns
PlusDays(long)
public Duration PlusDays(long arg0)
Parameters
Returns
PlusHours(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html#plusHours(long)
public Duration PlusHours(long arg0)
Parameters
Returns
PlusMillis(long)
public Duration PlusMillis(long arg0)
Parameters
Returns
PlusMinutes(long)
public Duration PlusMinutes(long arg0)
Parameters
Returns
PlusNanos(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html#plusNanos(long)
public Duration PlusNanos(long arg0)
Parameters
Returns
PlusSeconds(long)
public Duration PlusSeconds(long arg0)
Parameters
Returns
SubtractFrom(Temporal)
public Temporal SubtractFrom(Temporal arg0)
Parameters
Returns
ToDays()
public long ToDays()
Returns
ToDaysPart()
public long ToDaysPart()
Returns
ToHours()
public long ToHours()
Returns
ToHoursPart()
public int ToHoursPart()
Returns
ToMillis()
public long ToMillis()
Returns
ToMillisPart()
public int ToMillisPart()
Returns
ToMinutes()
public long ToMinutes()
Returns
ToMinutesPart()
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html#toMinutesPart()
public int ToMinutesPart()
Returns
ToNanos()
public long ToNanos()
Returns
ToNanosPart()
public int ToNanosPart()
Returns
ToSeconds()
public long ToSeconds()
Returns
ToSecondsPart()
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html#toSecondsPart()
public int ToSecondsPart()
Returns
TruncatedTo(TemporalUnit)
public Duration TruncatedTo(TemporalUnit arg0)
Parameters
arg0
TemporalUnit
Returns
WithNanos(int)
public Duration WithNanos(int arg0)
Parameters
Returns
WithSeconds(long)
public Duration WithSeconds(long arg0)
Parameters
Returns
Operators
implicit operator Serializable(Duration)
Converter from Duration to Serializable
public static implicit operator Serializable(Duration t)
Parameters
t
Duration
Returns
implicit operator Comparable(Duration)
Converter from Duration to Comparable
public static implicit operator Comparable(Duration t)
Parameters
t
Duration
Returns
implicit operator TemporalAmount(Duration)
Converter from Duration to TemporalAmount
public static implicit operator TemporalAmount(Duration t)
Parameters
t
Duration
Returns
implicit operator Duration(TimeSpan)
public static implicit operator Duration(TimeSpan timespan)
Parameters
timespan
TimeSpan