Enum Parity

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUTO
      The underlying system's implementation or other implementation specific parity is used.
      EVEN
      "Even (E) means that parity bit is set so that the number of "logical ones" must be even."
      MARK
      "Mark (M) parity means that the parity bit is always set to the mark signal condition (logical 1)."
      NONE
      "None (N) means that no parity bit is sent at all."
      ODD
      "Odd (O) means that parity bit is set so that the number of "logical ones" must be odd."
      SPACE
      "Space (S) parity always sends the parity bit in the space signal condition (logical 0)."
    • Enum Constant Detail

      • AUTO

        public static final Parity AUTO
        The underlying system's implementation or other implementation specific parity is used.
      • NONE

        public static final Parity NONE
        "None (N) means that no parity bit is sent at all."
      • ODD

        public static final Parity ODD
        "Odd (O) means that parity bit is set so that the number of "logical ones" must be odd."
      • EVEN

        public static final Parity EVEN
        "Even (E) means that parity bit is set so that the number of "logical ones" must be even."
      • MARK

        public static final Parity MARK
        "Mark (M) parity means that the parity bit is always set to the mark signal condition (logical 1)."
      • SPACE

        public static final Parity SPACE
        "Space (S) parity always sends the parity bit in the space signal condition (logical 0)."
    • Method Detail

      • values

        public static Parity[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Parity c : Parity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Parity valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null