public static enum NetworkMonitor.Action extends Enum<NetworkMonitor.Action>
Enum Constant and Description |
---|
HOST_ADDED |
HOST_REMOVED |
Modifier and Type | Method and Description |
---|---|
static NetworkMonitor.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkMonitor.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkMonitor.Action HOST_ADDED
public static final NetworkMonitor.Action HOST_REMOVED
public static NetworkMonitor.Action[] values()
for (NetworkMonitor.Action c : NetworkMonitor.Action.values()) System.out.println(c);
public static NetworkMonitor.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 © 2018. All rights reserved.