Package com.diozero.devices
Enum W1ThermSensor.Type
- All Implemented Interfaces:
Serializable
,Comparable<W1ThermSensor.Type>
- Enclosing class:
- W1ThermSensor
public static enum W1ThermSensor.Type extends Enum<W1ThermSensor.Type>
-
Enum Constant Summary
-
Method Summary
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 Details
-
DS18S20
-
DS1822
-
DS18B20
-
DS1825
-
DS28EA00
-
MAX31850K
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isValidId
-
getId
public int getId() -
valueOf
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
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
-