public enum PrimitiveEnum extends Enum<PrimitiveEnum>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHARACTER |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getClazz() |
Class<?> |
getType() |
static PrimitiveEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveEnum BYTE
public static final PrimitiveEnum SHORT
public static final PrimitiveEnum INTEGER
public static final PrimitiveEnum LONG
public static final PrimitiveEnum FLOAT
public static final PrimitiveEnum DOUBLE
public static final PrimitiveEnum BOOLEAN
public static final PrimitiveEnum CHARACTER
public static PrimitiveEnum[] values()
for (PrimitiveEnum c : PrimitiveEnum.values()) System.out.println(c);
public static PrimitiveEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<?> getType()
public Class<?> getClazz()
Copyright © 2017. All Rights Reserved.