Package com.diozero.devices
Enum W1ThermSensor.Type
- java.lang.Object
-
- java.lang.Enum<W1ThermSensor.Type>
-
- com.diozero.devices.W1ThermSensor.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<W1ThermSensor.Type>
- Enclosing class:
- W1ThermSensor
public static enum W1ThermSensor.Type extends Enum<W1ThermSensor.Type>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
static boolean
isValid(Path path)
static boolean
isValidId(String idString)
static W1ThermSensor.Type
valueOf(int id)
Returns the enum constant of this type with the specified name.static W1ThermSensor.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static W1ThermSensor.Type
valueOf(Path path)
Returns the enum constant of this type with the specified name.static W1ThermSensor.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DS18S20
public static final W1ThermSensor.Type DS18S20
-
DS1822
public static final W1ThermSensor.Type DS1822
-
DS18B20
public static final W1ThermSensor.Type DS18B20
-
DS1825
public static final W1ThermSensor.Type DS1825
-
DS28EA00
public static final W1ThermSensor.Type DS28EA00
-
MAX31850K
public static final W1ThermSensor.Type MAX31850K
-
-
Method Detail
-
values
public static W1ThermSensor.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (W1ThermSensor.Type c : W1ThermSensor.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static W1ThermSensor.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isValid
public static boolean isValid(Path path)
-
isValidId
public static boolean isValidId(String idString)
-
getId
public int getId()
-
valueOf
public static W1ThermSensor.Type valueOf(int id)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
id
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
public static W1ThermSensor.Type valueOf(Path path)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
path
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-