|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<EventContainer.EventValueType>
com.android.ddmlib.log.EventContainer.EventValueType
public static enum EventContainer.EventValueType
Type for event data.
| Enum Constant Summary | |
|---|---|
INT
|
|
LIST
|
|
LONG
|
|
STRING
|
|
TREE
|
|
UNKNOWN
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
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 name
java.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).
NOTE: for now, only STRING, INT, and LONG are supported.
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 string
Object 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>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||