Enum PrimitiveType.PrimitiveKind
- java.lang.Object
-
- java.lang.Enum<PrimitiveType.PrimitiveKind>
-
- jakarta.enterprise.lang.model.types.PrimitiveType.PrimitiveKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PrimitiveType.PrimitiveKind>
- Enclosing interface:
- PrimitiveType
public static enum PrimitiveType.PrimitiveKind extends java.lang.Enum<PrimitiveType.PrimitiveKind>
The primitive type kind: boolean, byte, short, int, long, float, double, char
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
Theboolean
primitive typeBYTE
Thebyte
primitive typeCHAR
Thechar
primitive typeDOUBLE
Thedouble
primitive typeFLOAT
Thefloat
primitive typeINT
Theint
primitive typeLONG
Thelong
primitive typeSHORT
Theshort
primitive type
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrimitiveType.PrimitiveKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PrimitiveType.PrimitiveKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final PrimitiveType.PrimitiveKind BOOLEAN
Theboolean
primitive type
-
BYTE
public static final PrimitiveType.PrimitiveKind BYTE
Thebyte
primitive type
-
SHORT
public static final PrimitiveType.PrimitiveKind SHORT
Theshort
primitive type
-
INT
public static final PrimitiveType.PrimitiveKind INT
Theint
primitive type
-
LONG
public static final PrimitiveType.PrimitiveKind LONG
Thelong
primitive type
-
FLOAT
public static final PrimitiveType.PrimitiveKind FLOAT
Thefloat
primitive type
-
DOUBLE
public static final PrimitiveType.PrimitiveKind DOUBLE
Thedouble
primitive type
-
CHAR
public static final PrimitiveType.PrimitiveKind CHAR
Thechar
primitive type
-
-
Method Detail
-
values
public static PrimitiveType.PrimitiveKind[] 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 (PrimitiveType.PrimitiveKind c : PrimitiveType.PrimitiveKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrimitiveType.PrimitiveKind 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
-
-