public enum Refresher extends Enum<Refresher>
Enum Constant and Description |
---|
LOCAL
I am the refresher
|
NONE
No refresher specified
|
REMOTE
The other party is the refresher
|
Modifier and Type | Method and Description |
---|---|
static Refresher |
fromInt(int v) |
boolean |
isLocal() |
boolean |
isRemote() |
static Refresher |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Refresher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Refresher LOCAL
public static final Refresher REMOTE
public static final Refresher NONE
public static Refresher[] values()
for (Refresher c : Refresher.values()) System.out.println(c);
public static Refresher 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 isLocal()
public boolean isRemote()
public static Refresher fromInt(int v)