Package jmri
Enum Sensor.PullResistance
- java.lang.Object
-
- java.lang.Enum<Sensor.PullResistance>
-
- jmri.Sensor.PullResistance
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Sensor.PullResistance>
- Enclosing interface:
- Sensor
public static enum Sensor.PullResistance extends java.lang.Enum<Sensor.PullResistance>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
peopleName
(package private) java.lang.String
shortName
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Sensor.PullResistance
getByPeopleName(java.lang.String pName)
static Sensor.PullResistance
getByShortName(java.lang.String shName)
java.lang.String
getPeopleName()
java.lang.String
getShortName()
java.lang.String
toString()
static Sensor.PullResistance
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Sensor.PullResistance[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PULL_UP
public static final Sensor.PullResistance PULL_UP
-
PULL_DOWN
public static final Sensor.PullResistance PULL_DOWN
-
PULL_OFF
public static final Sensor.PullResistance PULL_OFF
-
-
Field Detail
-
shortName
java.lang.String shortName
-
peopleName
java.lang.String peopleName
-
-
Method Detail
-
values
public static Sensor.PullResistance[] 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 (Sensor.PullResistance c : Sensor.PullResistance.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Sensor.PullResistance valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getShortName
public java.lang.String getShortName()
-
getPeopleName
public java.lang.String getPeopleName()
-
getByShortName
public static Sensor.PullResistance getByShortName(java.lang.String shName)
-
getByPeopleName
public static Sensor.PullResistance getByPeopleName(java.lang.String pName)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Sensor.PullResistance>
-
-