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