|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<EventValueDescription.ValueType> com.android.ddmlib.log.EventValueDescription.ValueType
public static enum EventValueDescription.ValueType
Represents the type of a numerical value. This is used to display values of vastly different type/range in graphs.
Enum Constant Summary | |
---|---|
ALLOCATIONS
|
|
BYTES
|
|
ID
|
|
MILLISECONDS
|
|
NOT_APPLICABLE
|
|
OBJECTS
|
|
PERCENT
|
Method Summary | |
---|---|
void |
checkType(EventContainer.EventValueType type)
Checks that the EventContainer.EventValueType is compatible with the EventValueDescription.ValueType . |
int |
getValue()
Returns the integer value of the enum. |
static EventValueDescription.ValueType |
getValueType(int value)
Returns a EventValueDescription.ValueType from an integer value, or null if no match
were found. |
String |
toString()
|
static EventValueDescription.ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EventValueDescription.ValueType[] |
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 EventValueDescription.ValueType NOT_APPLICABLE
public static final EventValueDescription.ValueType OBJECTS
public static final EventValueDescription.ValueType BYTES
public static final EventValueDescription.ValueType MILLISECONDS
public static final EventValueDescription.ValueType ALLOCATIONS
public static final EventValueDescription.ValueType ID
public static final EventValueDescription.ValueType PERCENT
Method Detail |
---|
public static EventValueDescription.ValueType[] values()
for (EventValueDescription.ValueType c : EventValueDescription.ValueType.values()) System.out.println(c);
public static EventValueDescription.ValueType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic void checkType(EventContainer.EventValueType type) throws InvalidValueTypeException
EventContainer.EventValueType
is compatible with the EventValueDescription.ValueType
.
type
- the EventContainer.EventValueType
to check.
InvalidValueTypeException
- if the types are not compatible.public static EventValueDescription.ValueType getValueType(int value)
EventValueDescription.ValueType
from an integer value, or null
if no match
were found.
value
- the integer value.public int getValue()
public String toString()
toString
in class Enum<EventValueDescription.ValueType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |