public enum SensorModel extends Enum<SensorModel>
Enum Constant and Description |
---|
TEMPERATURE |
TEMPERATURE_HUMIDITY |
Modifier and Type | Method and Description |
---|---|
static SensorModel |
fromName(String name) |
static SensorModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SensorModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SensorModel TEMPERATURE
public static final SensorModel TEMPERATURE_HUMIDITY
public static SensorModel[] values()
for (SensorModel c : SensorModel.values()) System.out.println(c);
public static SensorModel 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 SensorModel fromName(String name)
Copyright © 2015. All rights reserved.