public enum NodeNetwork extends java.lang.Enum<NodeNetwork>
Modifier and Type | Method and Description |
---|---|
NodeInfo.NodeNetwork |
asInternalNodeNetwork() |
static NodeNetwork |
fromInternalNodeNetwork(NodeInfo.NodeNetwork intNodeNetwork)
Method to convert an internal nodeNetwork to JSON/XML representation.
|
static NodeNetwork |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NodeNetwork[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeNetwork MAIN_NET
public static final NodeNetwork TEST_NET
public static final NodeNetwork UNKNOWN
public static NodeNetwork[] values()
for (NodeNetwork c : NodeNetwork.values()) System.out.println(c);
public static NodeNetwork 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 nullpublic NodeInfo.NodeNetwork asInternalNodeNetwork()
public static NodeNetwork fromInternalNodeNetwork(NodeInfo.NodeNetwork intNodeNetwork)
intNodeNetwork
- internal nodeNetwork.