Package net.nmoncho.type
Enum GenericTypeEnum
- java.lang.Object
-
- java.lang.Enum<GenericTypeEnum>
-
- net.nmoncho.type.GenericTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<GenericTypeEnum>
public enum GenericTypeEnum extends Enum<GenericTypeEnum>
- Author:
- Jeremy Sevellec
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCII_TYPEBOOLEAN_TYPEBYTES_TYPECOMPOSITE_TYPECOUNTER_TYPEDATE_TYPEDOUBLE_TYPEFLOAT_TYPEINTEGER_TYPELEXICAL_UUID_TYPELONG_TYPETIME_UUID_TYPEUTF_8_TYPEUUID_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenericTypeEnumfromValue(String v)StringtoString()Stringvalue()static GenericTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static GenericTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASCII_TYPE
public static final GenericTypeEnum ASCII_TYPE
-
BOOLEAN_TYPE
public static final GenericTypeEnum BOOLEAN_TYPE
-
BYTES_TYPE
public static final GenericTypeEnum BYTES_TYPE
-
COUNTER_TYPE
public static final GenericTypeEnum COUNTER_TYPE
-
DATE_TYPE
public static final GenericTypeEnum DATE_TYPE
-
DOUBLE_TYPE
public static final GenericTypeEnum DOUBLE_TYPE
-
FLOAT_TYPE
public static final GenericTypeEnum FLOAT_TYPE
-
INTEGER_TYPE
public static final GenericTypeEnum INTEGER_TYPE
-
LEXICAL_UUID_TYPE
public static final GenericTypeEnum LEXICAL_UUID_TYPE
-
LONG_TYPE
public static final GenericTypeEnum LONG_TYPE
-
TIME_UUID_TYPE
public static final GenericTypeEnum TIME_UUID_TYPE
-
UTF_8_TYPE
public static final GenericTypeEnum UTF_8_TYPE
-
UUID_TYPE
public static final GenericTypeEnum UUID_TYPE
-
COMPOSITE_TYPE
public static final GenericTypeEnum COMPOSITE_TYPE
-
-
Method Detail
-
values
public static GenericTypeEnum[] 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 (GenericTypeEnum c : GenericTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GenericTypeEnum valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
-
fromValue
public static GenericTypeEnum fromValue(String v)
-
toString
public String toString()
- Overrides:
toStringin classEnum<GenericTypeEnum>
-
-