Package com.diozero.api
Enum I2CConstants.AddressSize
- java.lang.Object
-
- java.lang.Enum<I2CConstants.AddressSize>
-
- com.diozero.api.I2CConstants.AddressSize
-
- All Implemented Interfaces:
Serializable
,Comparable<I2CConstants.AddressSize>
- Enclosing interface:
- I2CConstants
public static enum I2CConstants.AddressSize extends Enum<I2CConstants.AddressSize>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
static I2CConstants.AddressSize
valueOf(int addressSize)
Returns the enum constant of this type with the specified name.static I2CConstants.AddressSize
valueOf(String name)
Returns the enum constant of this type with the specified name.static I2CConstants.AddressSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIZE_7
public static final I2CConstants.AddressSize SIZE_7
-
SIZE_10
public static final I2CConstants.AddressSize SIZE_10
-
-
Method Detail
-
values
public static I2CConstants.AddressSize[] 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 (I2CConstants.AddressSize c : I2CConstants.AddressSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static I2CConstants.AddressSize 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
-
getSize
public int getSize()
-
valueOf
public static I2CConstants.AddressSize valueOf(int addressSize)
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:
addressSize
- 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
-
-