- 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 ConstantsEnum ConstantDescriptionBooltype.chartype.char16type.doubletype.floattype.float128type.float16type.inttype.int128type.longtype.long doubletype.long longtype.shorttype.voidtype.wchartype. -
Method Summary
Modifier and TypeMethodDescriptionlayout()The primitive type (optional) layout.typeName()static Type.Primitive.KindReturns 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
voidtype. -
Bool
Booltype. -
Char
chartype. -
Char16
char16type. -
Short
shorttype. -
Int
inttype. -
Long
longtype. -
LongLong
long longtype. -
Int128
int128type. -
Float
floattype. -
Double
doubletype. -
LongDouble
long doubletype. -
Float128
float128type. -
HalfFloat
float16type. -
WChar
wchartype.
-
-
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.
-