Enum PrimitiveTypes
- java.lang.Object
-
- java.lang.Enum<PrimitiveTypes>
-
- org.tomitribe.crest.cmds.processors.types.PrimitiveTypes
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PrimitiveTypes>
public enum PrimitiveTypes extends java.lang.Enum<PrimitiveTypes>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static PrimitiveTypesfromWrapper(java.lang.Class<?> wrapper)abstract java.lang.StringgetDefaultValue()abstract java.lang.Class<?>getWraper()static PrimitiveTypesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PrimitiveTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final PrimitiveTypes BOOLEAN
-
BYTE
public static final PrimitiveTypes BYTE
-
CHAR
public static final PrimitiveTypes CHAR
-
CHARACTER
public static final PrimitiveTypes CHARACTER
-
LONG
public static final PrimitiveTypes LONG
-
FLOAT
public static final PrimitiveTypes FLOAT
-
INT
public static final PrimitiveTypes INT
-
DOUBLE
public static final PrimitiveTypes DOUBLE
-
SHORT
public static final PrimitiveTypes SHORT
-
-
Method Detail
-
values
public static PrimitiveTypes[] 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 (PrimitiveTypes c : PrimitiveTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrimitiveTypes 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
-
getDefaultValue
public abstract java.lang.String getDefaultValue()
-
getWraper
public abstract java.lang.Class<?> getWraper()
-
fromWrapper
public static PrimitiveTypes fromWrapper(java.lang.Class<?> wrapper)
-
-