Module com.pi4j

Enum Class PwmPolarity

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

public enum PwmPolarity extends Enum<PwmPolarity>
PWM Polarity Enumerations
Version:
$Id: $Id
Author:
Robert Savage (http://www.savagehomeautomation.com)
  • Enum Constant Details

  • Method Details

    • values

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

      public static EnumSet<PwmPolarity> all()

      all.

      Returns:
      a EnumSet object.
    • parse

      public static PwmPolarity parse(String polarity)

      parse.

      Parameters:
      polarity - a String object.
      Returns:
      a PwmPolarity object.