public static enum ALcdBandSemantics.DataType extends Enum<ALcdBandSemantics.DataType>
Enum Constant and Description |
---|
DOUBLE
A 64-bit floating point number.
|
FLOAT
A 32-bit floating point number.
|
SIGNED_BYTE
A signed 8-bit integer.
|
SIGNED_INT
A signed 32-bit integer.
|
SIGNED_SHORT
A signed 16-bit integer.
|
UNSIGNED_BYTE
An unsigned 8-bit integer.
|
UNSIGNED_INT
An unsigned 32-bit integer.
|
UNSIGNED_SHORT
An unsigned 16-bit integer.
|
Modifier and Type | Method and Description |
---|---|
Number |
getMaxValue()
Returns the maximum value for this data type.
|
Number |
getMinValue()
Returns the minimum value for this data type.
|
int |
getSize()
Returns the size in bytes of this type.
|
int |
getSizeInBits()
Returns the size in bits of this type.
|
boolean |
isSigned()
Returns whether the data type supports signed values or not.
|
static ALcdBandSemantics.DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ALcdBandSemantics.DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ALcdBandSemantics.DataType UNSIGNED_BYTE
Byte
.public static final ALcdBandSemantics.DataType SIGNED_BYTE
Byte
.public static final ALcdBandSemantics.DataType UNSIGNED_SHORT
Short
.public static final ALcdBandSemantics.DataType SIGNED_SHORT
Short
.public static final ALcdBandSemantics.DataType UNSIGNED_INT
Integer
.public static final ALcdBandSemantics.DataType SIGNED_INT
Integer
.public static final ALcdBandSemantics.DataType FLOAT
Float
.public static final ALcdBandSemantics.DataType DOUBLE
Double
.public static ALcdBandSemantics.DataType[] values()
for (ALcdBandSemantics.DataType c : ALcdBandSemantics.DataType.values()) System.out.println(c);
public static ALcdBandSemantics.DataType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getSize()
public int getSizeInBits()
public Number getMinValue()
null
public Number getMaxValue()
null
public boolean isSigned()
true
if the data type supports signed values