public static enum EchoServer.Error extends Enum<EchoServer.Error>
| Enum Constant and Description | 
|---|
CLOSE_CONNECTION  | 
LARGER_CONTENT_LENGTH  | 
RANDOM_BYTES_RESPONSE  | 
SMALLER_CONTENT_LENGTH  | 
| Modifier and Type | Method and Description | 
|---|---|
static EchoServer.Error | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static EchoServer.Error[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final EchoServer.Error CLOSE_CONNECTION
public static final EchoServer.Error LARGER_CONTENT_LENGTH
public static final EchoServer.Error SMALLER_CONTENT_LENGTH
public static final EchoServer.Error RANDOM_BYTES_RESPONSE
public static EchoServer.Error[] values()
for (EchoServer.Error c : EchoServer.Error.values()) System.out.println(c);
public static EchoServer.Error 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 © 2020. All rights reserved.