public enum SocketState extends Enum<SocketState>
| Enum Constant and Description |
|---|
Closed |
Connected |
Connecting |
Error |
Ready |
| Modifier and Type | Field and Description |
|---|---|
static EnumSet<SocketState> |
CONNECTED_TRANSITION_STATES |
static EnumSet<SocketState> |
CONNECTING_TRANSITION_STATES |
static EnumSet<SocketState> |
ERROR_STATES |
static EnumSet<SocketState> |
FINAL_STATES |
static EnumSet<SocketState> |
INITIAL_STATES |
static EnumSet<SocketState> |
NON_FINAL_STATES |
static EnumSet<SocketState> |
OPEN_STATES |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFinal() |
static SocketState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocketState Ready
public static final SocketState Connecting
public static final SocketState Connected
public static final SocketState Error
public static final SocketState Closed
public static final EnumSet<SocketState> OPEN_STATES
public static final EnumSet<SocketState> ERROR_STATES
public static final EnumSet<SocketState> INITIAL_STATES
public static final EnumSet<SocketState> NON_FINAL_STATES
public static final EnumSet<SocketState> FINAL_STATES
public static final EnumSet<SocketState> CONNECTED_TRANSITION_STATES
public static final EnumSet<SocketState> CONNECTING_TRANSITION_STATES
public static SocketState[] values()
for (SocketState c : SocketState.values()) System.out.println(c);
public static SocketState 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 nullpublic boolean isFinal()
Copyright © 2026. All rights reserved.