Enum DataType
- java.lang.Object
-
- java.lang.Enum<DataType>
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.model.DataType
-
- All Implemented Interfaces:
Serializable
,Comparable<DataType>
public enum DataType extends Enum<DataType>
DataType representing the available data types in a flight recording.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
Array of primitivesBOOLEAN
Boolean 1-byteBYTE
Signed 1-byteDOUBLE
64-bit floating pointFLOAT
32-bit floating pointINTEGER
Signed 4-byteLONG
Signed 8-byteSHORT
Signed 2-byteSTRING
character data in 16-bit UnicodeSTRUCT
Complex typeSTRUCTARRAY
Array of complex typesU1
Unsigned 1-byteU2
Unsigned 2-byteU4
Unsigned 4-byteU8
Unsigned 8-byteUTF8
Character data in UTF-8 format,
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
boolean
isNumeric()
boolean
isPrimitive()
boolean
isTextual()
static DataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final DataType BOOLEAN
Boolean 1-byte
-
BYTE
public static final DataType BYTE
Signed 1-byte
-
U1
public static final DataType U1
Unsigned 1-byte
-
SHORT
public static final DataType SHORT
Signed 2-byte
-
U2
public static final DataType U2
Unsigned 2-byte
-
INTEGER
public static final DataType INTEGER
Signed 4-byte
-
U4
public static final DataType U4
Unsigned 4-byte
-
LONG
public static final DataType LONG
Signed 8-byte
-
U8
public static final DataType U8
Unsigned 8-byte
-
FLOAT
public static final DataType FLOAT
32-bit floating point
-
DOUBLE
public static final DataType DOUBLE
64-bit floating point
-
UTF8
public static final DataType UTF8
Character data in UTF-8 format,
-
STRING
public static final DataType STRING
character data in 16-bit Unicode
-
ARRAY
public static final DataType ARRAY
Array of primitives
-
STRUCT
public static final DataType STRUCT
Complex type
-
STRUCTARRAY
public static final DataType STRUCTARRAY
Array of complex types
-
-
Method Detail
-
values
public static DataType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataType c : DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataType valueOf(String name)
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
-
getSize
public int getSize()
-
isPrimitive
public boolean isPrimitive()
-
isTextual
public boolean isTextual()
-
isNumeric
public boolean isNumeric()
-
-