Module com.pi4j

Enum Class StopBits

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

public enum StopBits extends Enum<StopBits>

StopBits class.

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

  • Method Details

    • values

      public static StopBits[] 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 StopBits 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 StopBits getInstance(int stop_bits)

      getInstance.

      Parameters:
      stop_bits - a int.
      Returns:
      a StopBits object.
    • parse

      public static StopBits parse(String parity)

      parse.

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