JavaScript is disabled on your browser.
Skip navigation links
io.netty.channel.rxtx

Enum RxtxChannelConfig.Paritybit

    • Enum Constant Summary

      Enum Constants
      Enum Constant and Description
      EVEN
      An even parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an odd number of bits set to 1.
      MARK
      A mark parity bit (ie. always 1) will be sent with each data character
      NONE
      No parity bit will be sent with each data character at all
      ODD
      An odd parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an even number of bits set to 1.
      SPACE
      A space parity bit (ie. always 0) will be sent with each data character
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      int value ()
      static RxtxChannelConfig.Paritybit valueOf (int value)
      static RxtxChannelConfig.Paritybit valueOf (java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RxtxChannelConfig.Paritybit[] values ()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ODD

        public static final RxtxChannelConfig.Paritybit ODD
        An odd parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an even number of bits set to 1.
      • EVEN

        public static final RxtxChannelConfig.Paritybit EVEN
        An even parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an odd number of bits set to 1.
    • Method Detail

      • values

        public static RxtxChannelConfig.Paritybit[] 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 (RxtxChannelConfig.Paritybit c : RxtxChannelConfig.Paritybit.values())
         System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RxtxChannelConfig.Paritybit valueOf(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • value

        public int value()
Skip navigation links

Copyright © 2008–2018 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /