public static enum Sensor.RecordingLevel extends Enum<Sensor.RecordingLevel>
| Modifier and Type | Field and Description |
|---|---|
short | idthe permanent and immutable id of an API--this can't change ever |
static int | MAX_RECORDING_LEVEL_KEY |
String | namean english description of the api--this is for debugging and can change |
| Modifier and Type | Method and Description |
|---|---|
static Sensor.RecordingLevel | forId(int id) |
static Sensor.RecordingLevel | forName(String name)Case insensitive lookup by protocol name |
boolean | shouldRecord(int configId) |
static Sensor.RecordingLevel | valueOf(String name)Returns the enum constant of this type with the specified name. |
static Sensor.RecordingLevel[] | values()Returns an array containing the constants of this enum type, in the order they are declared. |
public static final Sensor.RecordingLevel INFO
public static final Sensor.RecordingLevel DEBUG
public static final Sensor.RecordingLevel TRACE
public static final int MAX_RECORDING_LEVEL_KEY
public final String name
public final short id
public static Sensor.RecordingLevel[] values()
for (Sensor.RecordingLevel c : Sensor.RecordingLevel.values()) System.out.println(c);
public static Sensor.RecordingLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Sensor.RecordingLevel forId(int id)
public static Sensor.RecordingLevel forName(String name)
public boolean shouldRecord(int configId)