Module com.pi4j

Enum Class PwmType

java.lang.Object
java.lang.Enum<PwmType>
com.pi4j.io.pwm.PwmType
All Implemented Interfaces:
Serializable, Comparable<PwmType>, Constable

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

    • SOFTWARE

      public static final PwmType SOFTWARE
    • HARDWARE

      public static final PwmType HARDWARE
  • Method Details

    • values

      public static PwmType[] 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 PwmType 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<PwmType>
    • all

      public static EnumSet<PwmType> all()

      all.

      Returns:
      a EnumSet object.
    • parse

      public static PwmType parse(String pull)

      parse.

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