public static enum TFTPServer.ServerMode extends Enum<TFTPServer.ServerMode>
Enum Constant and Description |
---|
GET_AND_PUT |
GET_ONLY |
PUT_ONLY |
Modifier and Type | Method and Description |
---|---|
static TFTPServer.ServerMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TFTPServer.ServerMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TFTPServer.ServerMode GET_ONLY
public static final TFTPServer.ServerMode PUT_ONLY
public static final TFTPServer.ServerMode GET_AND_PUT
public static TFTPServer.ServerMode[] values()
for (TFTPServer.ServerMode c : TFTPServer.ServerMode.values()) System.out.println(c);
public static TFTPServer.ServerMode 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 null