public final class HDF5EnumerationType extends HDF5DataType implements java.lang.Iterable<java.lang.String>
Modifier and Type | Class and Description |
---|---|
static class |
HDF5EnumerationType.EnumStorageForm
The storage form (as size in bytes) of an enumeration type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
EnumerationType |
getEnumerationType()
Returns the (file-independent)
EnumerationType of this (file-dependen)
HDF5EnumerationType . |
HDF5EnumerationType.EnumStorageForm |
getStorageForm()
Returns the
HDF5EnumerationType.EnumStorageForm of this enumeration type. |
java.util.List<java.lang.String> |
getValues()
Returns the allowed values of this enumeration type.
|
int |
hashCode() |
java.util.Iterator<java.lang.String> |
iterator()
Returns an
Iterator over all values of this enumeration type. |
java.lang.Integer |
tryGetIndexForValue(java.lang.String value)
Returns the ordinal value for the given string value, if value is a
member of the enumeration, and
null otherwise. |
java.lang.String |
tryGetName()
Returns the name of this type, if it exists and
null otherwise. |
getDataTypeInformation, getDataTypeInformation, getName, tryGetDataTypePath
public java.lang.Integer tryGetIndexForValue(java.lang.String value)
null
otherwise.public java.lang.String tryGetName()
null
otherwise.tryGetName
in class HDF5DataType
public java.util.List<java.lang.String> getValues()
public EnumerationType getEnumerationType()
EnumerationType
of this (file-dependen)
HDF5EnumerationType
.public HDF5EnumerationType.EnumStorageForm getStorageForm()
HDF5EnumerationType.EnumStorageForm
of this enumeration type.public java.util.Iterator<java.lang.String> iterator()
Iterator
over all values of this enumeration type.
Iterator.remove()
is not allowed and will throw an
UnsupportedOperationException
.iterator
in interface java.lang.Iterable<java.lang.String>
public int hashCode()
hashCode
in class HDF5DataType
public boolean equals(java.lang.Object obj)
equals
in class HDF5DataType