Package io.netty.channel.rxtx
Enum RxtxChannelConfig.Stopbits
- java.lang.Object
-
- java.lang.Enum<RxtxChannelConfig.Stopbits>
-
- io.netty.channel.rxtx.RxtxChannelConfig.Stopbits
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RxtxChannelConfig.Stopbits>
- Enclosing interface:
- RxtxChannelConfig
public static enum RxtxChannelConfig.Stopbits extends java.lang.Enum<RxtxChannelConfig.Stopbits>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STOPBITS_1
1 stop bit will be sent at the end of every characterSTOPBITS_1_5
1.5 stop bits will be sent at the end of every characterSTOPBITS_2
2 stop bits will be sent at the end of every character
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
static RxtxChannelConfig.Stopbits
valueOf(int value)
Returns the enum constant of this type with the specified name.static RxtxChannelConfig.Stopbits
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RxtxChannelConfig.Stopbits[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOPBITS_1
public static final RxtxChannelConfig.Stopbits STOPBITS_1
1 stop bit will be sent at the end of every character
-
STOPBITS_2
public static final RxtxChannelConfig.Stopbits STOPBITS_2
2 stop bits will be sent at the end of every character
-
STOPBITS_1_5
public static final RxtxChannelConfig.Stopbits STOPBITS_1_5
1.5 stop bits will be sent at the end of every character
-
-
Method Detail
-
values
public static RxtxChannelConfig.Stopbits[] 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.Stopbits c : RxtxChannelConfig.Stopbits.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.Stopbits 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 namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
valueOf
public static RxtxChannelConfig.Stopbits valueOf(int value)
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:
value
- 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 namejava.lang.NullPointerException
- if the argument is null
-
-