public static enum Channel.State extends Enum<Channel.State>
Enum Constant and Description |
---|
CLOSED |
CONNECTED |
CONNECTING |
OPEN |
Modifier and Type | Method and Description |
---|---|
static Channel.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Channel.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Channel.State OPEN
public static final Channel.State CONNECTING
public static final Channel.State CONNECTED
public static final Channel.State CLOSED
public static Channel.State[] values()
for (Channel.State c : Channel.State.values()) System.out.println(c);
public static Channel.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 JBoss, a division of Red Hat. All rights reserved.