Module com.pi4j

Enum Class DataBits

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

public enum DataBits extends Enum<DataBits>

DataBits class.

Version:
$Id: $Id
Author:
Robert Savage (http://www.savagehomeautomation.com)
  • Enum Constant Details

  • Method Details

    • values

      public static DataBits[] 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 DataBits 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()

      getValue.

      Returns:
      a int.
    • value

      public int value()

      value.

      Returns:
      a int.
    • getInstance

      public static DataBits getInstance(int data_bits)

      getInstance.

      Parameters:
      data_bits - a int.
      Returns:
      a DataBits object.
    • parse

      public static DataBits parse(String parity)

      parse.

      Parameters:
      parity - a String object.
      Returns:
      a DataBits object.