Package com.blackrook.archetext
Enum ArcheTextValue.Type
- java.lang.Object
-
- java.lang.Enum<ArcheTextValue.Type>
-
- com.blackrook.archetext.ArcheTextValue.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ArcheTextValue.Type>
- Enclosing class:
- ArcheTextValue
public static enum ArcheTextValue.Type extends Enum<ArcheTextValue.Type>
ArcheText value internal types.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArcheTextValue.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ArcheTextValue.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final ArcheTextValue.Type BOOLEAN
Boolean type.
-
INTEGER
public static final ArcheTextValue.Type INTEGER
Integer type. Stored as Long.
-
FLOAT
public static final ArcheTextValue.Type FLOAT
Floating-point type. Stored as Double.
-
STRING
public static final ArcheTextValue.Type STRING
String type.
-
SET
public static final ArcheTextValue.Type SET
Set type. Stored as Hash<ArcheTextValue>.
-
LIST
public static final ArcheTextValue.Type LIST
List type. Stored as List<ArcheTextValue>.
-
OBJECT
public static final ArcheTextValue.Type OBJECT
Object type for objects, or null. Stored as HashMap<String, ArcheTextObject>, or null.
-
NULL
public static final ArcheTextValue.Type NULL
Object type for null.
-
-
Method Detail
-
values
public static ArcheTextValue.Type[] 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 (ArcheTextValue.Type c : ArcheTextValue.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArcheTextValue.Type 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
-
-