public enum PeerState extends Enum<PeerState>
| Modifier and Type | Method and Description |
|---|---|
static PeerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeerState OKAY
public static final PeerState SUSPECT
public static final PeerState DOWN
public static final PeerState REOPEN
public static final PeerState INITIAL
public static PeerState[] values()
for (PeerState c : PeerState.values()) System.out.println(c);
public static PeerState 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 © 2016. All Rights Reserved.