- All Implemented Interfaces:
Serializable
,Comparable<Type.Primitive.Kind>
,Constable
- Enclosing interface:
Type.Primitive
The primitive type kind.
-
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBool
type.char
type.char16
type.double
type.float
type.float128
type.float16
type.int
type.int128
type.long
type.long double
type.long long
type.short
type.void
type.wchar
type. -
Method Summary
Modifier and TypeMethodDescriptionlayout()
The primitive type (optional) layout.typeName()
static Type.Primitive.Kind
Returns the enum constant of this class with the specified name.static Type.Primitive.Kind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Void
void
type. -
Bool
Bool
type. -
Char
char
type. -
Char16
char16
type. -
Short
short
type. -
Int
int
type. -
Long
long
type. -
LongLong
long long
type. -
Int128
int128
type. -
Float
float
type. -
Double
double
type. -
LongDouble
long double
type. -
Float128
float128
type. -
HalfFloat
float16
type. -
WChar
wchar
type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
typeName
-
layout
The primitive type (optional) layout.- Returns:
- The primitive type (optional) layout.
-