public class HDF5TimeDurationArray
extends java.lang.Object
Constructor and Description |
---|
HDF5TimeDurationArray(long[] timeDurations,
HDF5TimeUnit timeUnit)
Creates an array of timeDurations using a common timeUnit.
|
Modifier and Type | Method and Description |
---|---|
static HDF5TimeDurationArray |
create(HDF5TimeDuration... timeDurations)
Creates a
HDF5TimeDurationArray from the given timeDurations. |
static HDF5TimeDurationArray |
create(HDF5TimeUnit timeUnit,
long... durationValues)
Creates a
HDF5TimeDurationArray from the array of given durationValues
with the given timeUnit. |
boolean |
equals(java.lang.Object obj) |
HDF5TimeDuration |
get(int index)
Returns the element index.
|
HDF5TimeDuration |
get(int index,
HDF5TimeUnit targetUnit)
Returns the element index in the given targetUnit.
|
int |
getLength()
Returns the number of elements.
|
HDF5TimeUnit |
getUnit()
Returns the time unit.
|
long |
getValue(int index)
Returns the value element index.
|
long |
getValue(int index,
HDF5TimeUnit targetUnit)
Returns the value element index in the given targetUnit.
|
long[] |
getValues()
Returns the time duration values.
|
long[] |
getValues(HDF5TimeUnit targetUnit)
Returns the time duration values in the given targetUnit.
|
int |
hashCode() |
java.lang.String |
toString() |
public HDF5TimeDurationArray(long[] timeDurations, HDF5TimeUnit timeUnit)
public static HDF5TimeDurationArray create(HDF5TimeUnit timeUnit, long... durationValues)
HDF5TimeDurationArray
from the array of given durationValues
with the given timeUnit.public static HDF5TimeDurationArray create(HDF5TimeDuration... timeDurations)
HDF5TimeDurationArray
from the given timeDurations. Converts all
values to the smallest time unit found in timeDurations.public HDF5TimeUnit getUnit()
public long[] getValues()
public int getLength()
public long[] getValues(HDF5TimeUnit targetUnit)
public HDF5TimeDuration get(int index)
public HDF5TimeDuration get(int index, HDF5TimeUnit targetUnit)
public long getValue(int index)
public long getValue(int index, HDF5TimeUnit targetUnit)
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