public enum HDF5DataTypeVariant extends java.lang.Enum<HDF5DataTypeVariant>
| Enum Constant and Description |
|---|
BITFIELD |
ENUM
An enumeration.
|
NONE
No type variant.
|
TIME_DURATION_DAYS
A time duration in days.
|
TIME_DURATION_HOURS
A time duration in hours.
|
TIME_DURATION_MICROSECONDS
A time duration in micro-seconds.
|
TIME_DURATION_MILLISECONDS
A time duration in milli-seconds.
|
TIME_DURATION_MINUTES
A time duration in minutes.
|
TIME_DURATION_SECONDS
A time duration in seconds.
|
TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
Used for data sets that encode time stamps as number of milli-seconds since midnight, January
1, 1970 UTC (aka "start of the epoch").
|
| Modifier and Type | Method and Description |
|---|---|
static HDF5TimeUnit |
getTimeUnit(HDF5DataTypeVariant typeVariant)
Returns the time unit for the given typeVariant.
|
static HDF5TimeUnit |
getTimeUnit(int typeVariantOrdinal)
Returns the time unit for the given typeVariantOrdinal.
|
boolean |
isCompatible(java.lang.Class<?> type)
Returns
true if type is compatible with this type variant. |
boolean |
isTimeDuration()
Returns
true, if this type variant corresponds to a time duration. |
static boolean |
isTimeDuration(int typeVariantOrdinal)
Returns
true, if the type variant denoted by typeVariantOrdinal
corresponds to a time duration. |
boolean |
isTimeStamp()
Returns
true, if this type variant corresponds to a time stamp. |
boolean |
isTypeVariant()
Returns
true, if this type variant is not NONE. |
static boolean |
isTypeVariant(HDF5DataTypeVariant typeVariantOrNull)
Returns
true, if typeVariantOrNull is not
nullNONE. |
static boolean |
isTypeVariant(int typeVariantOrdinal)
Returns
true, if typeVariantOrdinal does not
represent NONE. |
static HDF5DataTypeVariant |
maskNull(HDF5DataTypeVariant typeVariantOrNull)
Returns typeVariantOrNull, if it is not
null, and NONE
otherwise. |
HDF5TimeUnit |
tryGetTimeUnit()
Returns the time unit for this type variant or
null, if this type variant is not
a time unit. |
static HDF5DataTypeVariant |
unmaskNone(HDF5DataTypeVariant typeVariantOrNull)
Returns typeVariantOrNull, if it is not
NONE, and null
otherwise. |
static HDF5DataTypeVariant |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HDF5DataTypeVariant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HDF5DataTypeVariant TIMESTAMP_MILLISECONDS_SINCE_START_OF_THE_EPOCH
public static final HDF5DataTypeVariant TIME_DURATION_MICROSECONDS
public static final HDF5DataTypeVariant TIME_DURATION_MILLISECONDS
public static final HDF5DataTypeVariant TIME_DURATION_SECONDS
public static final HDF5DataTypeVariant TIME_DURATION_MINUTES
public static final HDF5DataTypeVariant TIME_DURATION_HOURS
public static final HDF5DataTypeVariant TIME_DURATION_DAYS
public static final HDF5DataTypeVariant ENUM
public static final HDF5DataTypeVariant NONE
public static final HDF5DataTypeVariant BITFIELD
public static HDF5DataTypeVariant[] values()
for (HDF5DataTypeVariant c : HDF5DataTypeVariant.values()) System.out.println(c);
public static HDF5DataTypeVariant valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static boolean isTypeVariant(HDF5DataTypeVariant typeVariantOrNull)
true, if typeVariantOrNull is not
nullNONE.public static boolean isTypeVariant(int typeVariantOrdinal)
true, if typeVariantOrdinal does not
represent NONE.public static HDF5DataTypeVariant maskNull(HDF5DataTypeVariant typeVariantOrNull)
null, and NONE
otherwise.public static HDF5DataTypeVariant unmaskNone(HDF5DataTypeVariant typeVariantOrNull)
NONE, and null
otherwise.public boolean isTypeVariant()
true, if this type variant is not NONE.public static boolean isTimeDuration(int typeVariantOrdinal)
true, if the type variant denoted by typeVariantOrdinal
corresponds to a time duration.public boolean isCompatible(java.lang.Class<?> type)
true if type is compatible with this type variant.public static HDF5TimeUnit getTimeUnit(HDF5DataTypeVariant typeVariant)
public static HDF5TimeUnit getTimeUnit(int typeVariantOrdinal)
public boolean isTimeStamp()
true, if this type variant corresponds to a time stamp.public boolean isTimeDuration()
true, if this type variant corresponds to a time duration.public HDF5TimeUnit tryGetTimeUnit()
null, if this type variant is not
a time unit.