public static enum EventContainer.EventValueType extends java.lang.Enum<EventContainer.EventValueType>
Enum Constant and Description |
---|
INT |
LIST |
LONG |
STRING |
TREE |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getObjectFromStorageString(java.lang.String value)
Creates an
Object from a storage string created with
getStorageString(Object) . |
static java.lang.String |
getStorageString(java.lang.Object object)
Returns a storage string for an
Object of type supported by
EventContainer.EventValueType . |
int |
getValue()
Returns the integer value of the enum.
|
java.lang.String |
toString() |
static EventContainer.EventValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventContainer.EventValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventContainer.EventValueType UNKNOWN
public static final EventContainer.EventValueType INT
public static final EventContainer.EventValueType LONG
public static final EventContainer.EventValueType STRING
public static final EventContainer.EventValueType LIST
public static final EventContainer.EventValueType TREE
public static EventContainer.EventValueType[] values()
for (EventContainer.EventValueType c : EventContainer.EventValueType.values()) System.out.println(c);
public static EventContainer.EventValueType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.lang.String getStorageString(java.lang.Object object)
Object
of type supported by
EventContainer.EventValueType
.
Strings created by this method can be reloaded with
getObjectFromStorageString(String)
.
object
- the object to "convert" into a storage string.public static java.lang.Object getObjectFromStorageString(java.lang.String value)
Object
from a storage string created with
getStorageString(Object)
.value
- the storage stringObject
or null if the string or type were not recognized.public int getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<EventContainer.EventValueType>