Enum Types.Builtin
- java.lang.Object
-
- java.lang.Enum<Types.Builtin>
-
- org.openjdk.jmc.flightrecorder.writer.api.Types.Builtin
-
- All Implemented Interfaces:
Serializable
,Comparable<Types.Builtin>
,NamedType
,Types.Predefined
- Enclosing class:
- Types
public static enum Types.Builtin extends Enum<Types.Builtin> implements Types.Predefined
Built-in types
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getTypeClass()
String
getTypeName()
static boolean
hasType(String name)
static Types.Builtin
ofName(String name)
static Types.Builtin
ofType(Type type)
static Types.Builtin
valueOf(String name)
Returns the enum constant of this type with the specified name.static Types.Builtin[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final Types.Builtin BYTE
-
CHAR
public static final Types.Builtin CHAR
-
SHORT
public static final Types.Builtin SHORT
-
INT
public static final Types.Builtin INT
-
LONG
public static final Types.Builtin LONG
-
FLOAT
public static final Types.Builtin FLOAT
-
DOUBLE
public static final Types.Builtin DOUBLE
-
BOOLEAN
public static final Types.Builtin BOOLEAN
-
STRING
public static final Types.Builtin STRING
-
-
Method Detail
-
values
public static Types.Builtin[] 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 (Types.Builtin c : Types.Builtin.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Types.Builtin 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
-
hasType
public static boolean hasType(String name)
-
ofName
public static Types.Builtin ofName(String name)
-
ofType
public static Types.Builtin ofType(Type type)
-
getTypeName
public String getTypeName()
- Specified by:
getTypeName
in interfaceNamedType
- Returns:
- the type name
-
getTypeClass
public Class<?> getTypeClass()
-
-