public enum WriteResult extends Enum<WriteResult>
Enum Constant and Description |
---|
WR_FAIL
Write failed
|
WR_SUCCESS
Packet successfully transmitted
|
WR_TOO_LARGE
Packet was too large
|
Modifier and Type | Method and Description |
---|---|
static WriteResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteResult WR_SUCCESS
public static final WriteResult WR_TOO_LARGE
public static final WriteResult WR_FAIL
public static WriteResult[] values()
for (WriteResult c : WriteResult.values()) System.out.println(c);
public static WriteResult 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 © 2018. All rights reserved.