public static class HealthKeys.Constants extends Object
Constructor and Description |
---|
Constants(Class clazz)
Pass in a class to gather the public static final int fields that are
tagged with the @Constant annotation.
|
Modifier and Type | Method and Description |
---|---|
String |
getDataType()
Get a string representation of this class.
|
int |
getIndex(int type,
int key)
Return the index for the given type and key combination in the array of field
keys or values.
|
int[] |
getKeys(int type)
Get the array of keys for the given field type.
|
int |
getSize(int type)
Return how many keys there are for the given field type.
|
public Constants(Class clazz)
public String getDataType()
public int getSize(int type)
TYPE_TIMER
,
TYPE_MEASUREMENT
,
TYPE_TIMERS
,
TYPE_MEASUREMENTS
,
TYPE_STATS
public int getIndex(int type, int key)
TYPE_TIMER
,
TYPE_MEASUREMENT
,
TYPE_TIMERS
,
TYPE_MEASUREMENTS
,
TYPE_STATS
public int[] getKeys(int type)