Enum Class ParityBits

java.lang.Object
java.lang.Enum<ParityBits>
eu.mihosoft.devcom.ParityBits
All Implemented Interfaces:
Serializable, Comparable<ParityBits>, Constable

public enum ParityBits extends Enum<ParityBits>
Parity bit configurations that are supported by the underlying COM port library.
  • Enum Constant Details

    • NO_PARITY

      public static final ParityBits NO_PARITY
    • EVEN_PARITY

      public static final ParityBits EVEN_PARITY
    • ODD_PARITY

      public static final ParityBits ODD_PARITY
    • MARK_PARITY

      public static final ParityBits MARK_PARITY
    • SPACE_PARITY

      public static final ParityBits SPACE_PARITY
  • Method Details

    • values

      public static ParityBits[] 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 ParityBits 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