public enum PrimitiveType extends java.lang.Enum<PrimitiveType>
Enum Constant and Description |
---|
Boolean |
Byte |
Char |
Double |
Float |
Int |
Long |
NotPrimitive
Not a primitive
|
Short |
Modifier and Type | Method and Description |
---|---|
static PrimitiveType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveType NotPrimitive
public static final PrimitiveType Char
public static final PrimitiveType Int
public static final PrimitiveType Long
public static final PrimitiveType Short
public static final PrimitiveType Byte
public static final PrimitiveType Float
public static final PrimitiveType Double
public static final PrimitiveType Boolean
public static PrimitiveType[] values()
for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
public static PrimitiveType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null