- java.lang.Object
-
- java.lang.Enum<PwmType>
-
- com.pi4j.io.pwm.PwmType
-
- All Implemented Interfaces:
Serializable
,Comparable<PwmType>
public enum PwmType extends Enum<PwmType>
Digital Pin Pull Resistance Enumerations- Version:
- $Id: $Id
- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnumSet<PwmType>
all()
all.String
getName()
Getter for the fieldname
.int
getValue()
Getter for the fieldvalue
.static PwmType
parse(String pull)
parse.String
toString()
static PwmType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PwmType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static PwmType[] 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 (PwmType c : PwmType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PwmType 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
-
getValue
public int getValue()
Getter for the field
value
.- Returns:
- a int.
-
-