public static enum EventValueDescription.ValueType extends java.lang.Enum<EventValueDescription.ValueType>
| Enum Constant and Description |
|---|
ALLOCATIONS |
BYTES |
ID |
MILLISECONDS |
NOT_APPLICABLE |
OBJECTS |
PERCENT |
| Modifier and Type | Method and Description |
|---|---|
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. |
java.lang.String |
toString() |
static EventValueDescription.ValueType |
valueOf(java.lang.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.
|
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
public static EventValueDescription.ValueType[] values()
for (EventValueDescription.ValueType c : EventValueDescription.ValueType.values()) System.out.println(c);
public static EventValueDescription.ValueType 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 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 java.lang.String toString()
toString in class java.lang.Enum<EventValueDescription.ValueType>