Package com.luciad.imaging
Enum Class ALcdBandSemantics.DataType
- All Implemented Interfaces:
Serializable
,Comparable<ALcdBandSemantics.DataType>
,Constable
- Enclosing class:
ALcdBandSemantics
An enumeration that defines the type of a band.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA 64-bit floating point number.A 32-bit floating point number.A signed 8-bit integer.A signed 32-bit integer.A signed 16-bit integer.An unsigned 8-bit integer.An unsigned 32-bit integer.An unsigned 16-bit integer. -
Method Summary
Modifier and TypeMethodDescriptionReturns the maximum value for this data type.Returns the minimum value for this data type.int
getSize()
Returns the size in bytes of this type.int
Returns the size in bits of this type.boolean
isSigned()
Returns whether the data type supports signed values or not.static ALcdBandSemantics.DataType
Returns the enum constant of this class with the specified name.static ALcdBandSemantics.DataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSIGNED_BYTE
An unsigned 8-bit integer. Represented using aByte
. -
SIGNED_BYTE
A signed 8-bit integer. Represented using aByte
. -
UNSIGNED_SHORT
An unsigned 16-bit integer. Represented using aShort
. -
SIGNED_SHORT
A signed 16-bit integer. Represented using aShort
. -
UNSIGNED_INT
An unsigned 32-bit integer. Represented using aInteger
. -
SIGNED_INT
A signed 32-bit integer. Represented using aInteger
. -
FLOAT
A 32-bit floating point number. Represented using aFloat
. -
DOUBLE
A 64-bit floating point number. Represented using aDouble
.
-
-
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
-
getSize
public int getSize()Returns the size in bytes of this type.- Returns:
- the size in bytes of this type
-
getSizeInBits
public int getSizeInBits()Returns the size in bits of this type.- Returns:
- the size in bits of this type
-
getMinValue
Returns the minimum value for this data type. Note that for floating point data types the special values (ex. Infinity, NaN, etc.) are not considered.- Returns:
- the minimum value, never
null
-
getMaxValue
Returns the maximum value for this data type. Note that for floating point data types the special values (ex. Infinity, NaN, etc.) are not considered.- Returns:
- the maximum value, never
null
-
isSigned
public boolean isSigned()Returns whether the data type supports signed values or not.- Returns:
true
if the data type supports signed values
-