Package gov.nasa.pds.objectAccess
Enum DataType.NumericDataType
- All Implemented Interfaces:
Serializable,Comparable<DataType.NumericDataType>,java.lang.constant.Constable
- Enclosing interface:
- DataType
public static enum DataType.NumericDataType extends Enum<DataType.NumericDataType>
- Author:
- dcberrio Enumeration of numeric data types for tables and images. Includes fields for providing number of bits and vicar label aliases.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description intgetBits()Get number of bits for the data type.StringgetVicarAlias()Get VICAR alias for the data type.voidsetBits(int bits)Set number of bits for the data type.voidsetVicarAlias(String vicarAlias)Set the VICAR alias for the data type.static DataType.NumericDataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DataType.NumericDataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SignedByte
-
UnsignedByte
-
SignedLSB2
-
SignedLSB4
-
SignedLSB8
-
UnsignedLSB2
-
UnsignedLSB4
-
UnsignedLSB8
-
SignedMSB2
-
SignedMSB4
-
SignedMSB8
-
UnsignedMSB2
-
UnsignedMSB4
-
UnsignedMSB8
-
IEEE754LSBSingle
-
IEEE754LSBDouble
-
IEEE754MSBSingle
-
IEEE754MSBDouble
-
ASCII_Integer
-
ASCII_Real
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getBits
public int getBits()Get number of bits for the data type.- Returns:
- bits
-
setBits
public void setBits(int bits)Set number of bits for the data type.- Parameters:
bits- number of bits.
-
getVicarAlias
Get VICAR alias for the data type.- Returns:
- vicarAlias
-
setVicarAlias
Set the VICAR alias for the data type.- Parameters:
vicarAlias-
-