Package gov.nasa.pds.objectAccess
Enum Class DataType.NumericDataType
- All Implemented Interfaces:
Serializable,Comparable<DataType.NumericDataType>,Constable
- Enclosing interface:
- DataType
- 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
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintgetBits()Get number of bits for the data type.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.NumericDataTypeReturns the enum constant of this class with the specified name.static DataType.NumericDataType[]values()Returns an array containing the constants of this enum class, 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
-
ComplexLSB8
-
ComplexMSB8
-
ComplexLSB16
-
ComplexMSB16
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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-
-