public enum NetworkTopology extends java.lang.Enum<NetworkTopology>
| Enum Constant and Description |
|---|
LAN
LAN network topology.
|
P2P
P2P network topology,
|
Relayed
Relayed netowrk topology.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(NetworkTopology type)
Get the fully formatized string of network topology type.
|
java.lang.String |
toString()
Get fully formatized string.
|
int |
value()
Get netowrk topology type.
|
static NetworkTopology |
valueOf(int type)
Get network topolgoy.
|
static NetworkTopology |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkTopology[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkTopology LAN
public static final NetworkTopology P2P
public static final NetworkTopology Relayed
public static NetworkTopology[] values()
for (NetworkTopology c : NetworkTopology.values()) System.out.println(c);
public static NetworkTopology 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 static NetworkTopology valueOf(int type)
type - The value of topolgoy.java.lang.IllegalArgumentExceptionpublic int value()
public static java.lang.String format(NetworkTopology type)
type - The network topology instance.public java.lang.String toString()
toString in class java.lang.Enum<NetworkTopology>