Enum DataType
- java.lang.Object
-
- java.lang.Enum<DataType>
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.model.DataType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYArray of primitivesBOOLEANBoolean 1-byteBYTESigned 1-byteDOUBLE64-bit floating pointFLOAT32-bit floating pointINTEGERSigned 4-byteLONGSigned 8-byteSHORTSigned 2-byteSTRINGcharacter data in 16-bit UnicodeSTRUCTComplex typeSTRUCTARRAYArray of complex typesU1Unsigned 1-byteU2Unsigned 2-byteU4Unsigned 4-byteU8Unsigned 8-byteUTF8Character data in UTF-8 format,
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSize()booleanisNumeric()booleanisPrimitive()booleanisTextual()static DataTypevalueOf(java.lang.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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getSize
public int getSize()
-
isPrimitive
public boolean isPrimitive()
-
isTextual
public boolean isTextual()
-
isNumeric
public boolean isNumeric()
-
-