public static enum PeerEndpoint.Type extends java.lang.Enum<PeerEndpoint.Type>
| Enum Constant and Description |
|---|
NON_VALIDATOR |
UNDEFINED |
VALIDATOR |
| Modifier and Type | Method and Description |
|---|---|
static PeerEndpoint.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PeerEndpoint.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeerEndpoint.Type UNDEFINED
public static final PeerEndpoint.Type VALIDATOR
public static final PeerEndpoint.Type NON_VALIDATOR
public static PeerEndpoint.Type[] values()
for (PeerEndpoint.Type c : PeerEndpoint.Type.values()) System.out.println(c);
public static PeerEndpoint.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null