public final class HDF5CompoundMemberInformation extends java.lang.Object implements java.lang.Comparable<HDF5CompoundMemberInformation>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HDF5CompoundMemberInformation o) |
static HDF5CompoundMemberInformation[] |
create(java.lang.Class<?> compoundClass,
java.lang.String houseKeepingNameSuffix,
HDF5CompoundMemberMapping... members)
Creates the compound member information for the given compoundClass and
members.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name of the member.
|
int |
getOffsetInMemory()
Returns the byte offset of this member within the compound data type in memory.
|
int |
getOffsetOnDisk()
Returns the byte offset of this member within the compound data type on disk.
|
HDF5DataTypeInformation |
getType()
Returns the type information of the member.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String[] |
tryGetEnumValues()
Returns the values of the enumeration type of this compound member, if it is of an
enumeration type and
null otherwise. |
public java.lang.String getName()
public HDF5DataTypeInformation getType()
public java.lang.String[] tryGetEnumValues()
null
otherwise.public int getOffsetOnDisk()
The on-disk representation is packed.
public int getOffsetInMemory()
The in-memory representation may contain padding to ensure that read access is always aligned.
public static HDF5CompoundMemberInformation[] create(java.lang.Class<?> compoundClass, java.lang.String houseKeepingNameSuffix, HDF5CompoundMemberMapping... members)
Call Arrays.sort(compoundInformation)
to sort the array in alphabetical order of
names.
Can be used to compare compound types, e.g. via
Arrays.equals(Object[], Object[])
.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(HDF5CompoundMemberInformation o)
compareTo
in interface java.lang.Comparable<HDF5CompoundMemberInformation>