public enum ValueType extends Enum<ValueType> implements IEnumWithValue
| Enum Constant and Description |
|---|
BYTE
Signed byte (8 bits).
|
FLOAT
Floating point (32 bit).
|
HALF_FLOAT
Floating point (16 bit).
|
INT
Signed integer (32 bits).
|
SHORT
Signed short (16 bits).
|
UNSIGNED_BYTE
Unsigned byte (8 bits).
|
UNSIGNED_INT
Unsigned integer (32 bits) (when using the OES_element_index_uint extension).
|
UNSIGNED_SHORT
Unsigned short (16 bits).
|
| Modifier and Type | Method and Description |
|---|---|
static void |
validate(ValueType value,
ValueType... allowedValues)
Validate that the specified value is one of the allowed types.
|
int |
value() |
static ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOffromValue, transformForClientpublic static final ValueType BYTE
public static final ValueType INT
public static final ValueType SHORT
public static final ValueType FLOAT
public static final ValueType HALF_FLOAT
public static final ValueType UNSIGNED_BYTE
public static final ValueType UNSIGNED_SHORT
public static final ValueType UNSIGNED_INT
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType 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 static void validate(ValueType value, ValueType... allowedValues)
value - Value to check.allowedValues - Allowed types.IllegalArgumentException - Thrown if the value is not allowed.public int value()
value in interface IEnumWithValueCopyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.