Home / Type/ Stopbits Type — netty Architecture

Stopbits Type — netty Architecture

Architecture documentation for the Stopbits type/interface in RxtxChannelConfig.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  12733727_1731_fbd6_5c59_ea2053261da2["Stopbits"]
  e44bacc8_8508_4cea_f355_1d8a8899dc98["RxtxChannelConfig.java"]
  12733727_1731_fbd6_5c59_ea2053261da2 -->|defined in| e44bacc8_8508_4cea_f355_1d8a8899dc98
  style 12733727_1731_fbd6_5c59_ea2053261da2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-rxtx/src/main/java/io/netty/channel/rxtx/RxtxChannelConfig.java lines 57–89

    enum Stopbits {
        /**
         * 1 stop bit will be sent at the end of every character
         */
        STOPBITS_1(SerialPort.STOPBITS_1),
        /**
         * 2 stop bits will be sent at the end of every character
         */
        STOPBITS_2(SerialPort.STOPBITS_2),
        /**
         * 1.5 stop bits will be sent at the end of every character
         */
        STOPBITS_1_5(SerialPort.STOPBITS_1_5);

        private final int value;

        Stopbits(int value) {
            this.value = value;
        }

        public int value() {
            return value;
        }

        public static Stopbits valueOf(int value) {
            for (Stopbits stopbit : Stopbits.values()) {
                if (stopbit.value == value) {
                    return stopbit;
                }
            }
            throw new IllegalArgumentException("unknown " + Stopbits.class.getSimpleName() + " value: " + value);
        }
    }

Frequently Asked Questions

What is the Stopbits type?
Stopbits is a type/interface in the netty codebase, defined in transport-rxtx/src/main/java/io/netty/channel/rxtx/RxtxChannelConfig.java.
Where is Stopbits defined?
Stopbits is defined in transport-rxtx/src/main/java/io/netty/channel/rxtx/RxtxChannelConfig.java at line 57.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free