Module com.pi4j

Enum Class PullResistance

java.lang.Object
java.lang.Enum<PullResistance>
com.pi4j.io.gpio.digital.PullResistance
All Implemented Interfaces:
Serializable, Comparable<PullResistance>, Constable

public enum PullResistance extends Enum<PullResistance>
Digital Pin Pull Resistance Enumerations
Version:
$Id: $Id
Author:
Robert Savage (http://www.savagehomeautomation.com)
  • Enum Constant Details

  • Method Details

    • values

      public static PullResistance[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PullResistance valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()

      Getter for the field value.

      Returns:
      a int.
    • getName

      public String getName()

      Getter for the field name.

      Returns:
      a String object.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PullResistance>
    • all

      public static EnumSet<PullResistance> all()

      all.

      Returns:
      a EnumSet object.
    • parse

      public static PullResistance parse(String pull)

      parse.

      Parameters:
      pull - a String object.
      Returns:
      a PullResistance object.