public class HDF5TimeDuration
extends java.lang.Object
Constructor and Description |
---|
HDF5TimeDuration(long duration,
HDF5TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
HDF5TimeUnit |
getUnit()
The time unit of the duration.
|
long |
getValue()
The time duration, see
getUnit() for the time unit. |
long |
getValue(HDF5TimeUnit targetUnit)
The time duration in the given targetUnit.
|
int |
hashCode() |
boolean |
isEquivalent(HDF5TimeDuration that)
Returns
true , if that represents the same time duration. |
java.lang.String |
toString() |
public HDF5TimeDuration(long duration, HDF5TimeUnit timeUnit)
public long getValue()
getUnit()
for the time unit.public long getValue(HDF5TimeUnit targetUnit)
public HDF5TimeUnit getUnit()
public boolean isEquivalent(HDF5TimeDuration that)
true
, if that represents the same time duration.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object