com.threerings.admin.web.gwt
Enum ConfigField.FieldType
java.lang.Object
java.lang.Enum<ConfigField.FieldType>
com.threerings.admin.web.gwt.ConfigField.FieldType
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable, Serializable, Comparable<ConfigField.FieldType>
- Enclosing class:
- ConfigField
public static enum ConfigField.FieldType
- extends Enum<ConfigField.FieldType>
- implements com.google.gwt.user.client.rpc.IsSerializable
INTEGER
public static final ConfigField.FieldType INTEGER
SHORT
public static final ConfigField.FieldType SHORT
BYTE
public static final ConfigField.FieldType BYTE
LONG
public static final ConfigField.FieldType LONG
FLOAT
public static final ConfigField.FieldType FLOAT
BOOLEAN
public static final ConfigField.FieldType BOOLEAN
DOUBLE
public static final ConfigField.FieldType DOUBLE
STRING
public static final ConfigField.FieldType STRING
values
public static ConfigField.FieldType[] 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 (ConfigField.FieldType c : ConfigField.FieldType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ConfigField.FieldType 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 name
NullPointerException - if the argument is null
toString
public String toString(Object value)
- Create a string representation of the given value, which should be of the type
reflected in this enum.
toValue
public Object toValue(String text)
- Convert the given string, which should have been created by
toString(Object),
back into its raw value form.