public enum UpnpState extends java.lang.Enum<UpnpState>
Enum Constant | Description |
---|---|
Adding |
Internal use: Only used by port binding.
|
Blacklisted |
IGD router is blacklisted.
|
Idle |
uPnP is not activate
|
Ko |
uPnP processing has failed
|
NotAvailable |
uPnP is not available
|
Ok |
uPnP is enabled
|
Pending |
uPnP process is in progress
|
Removing |
Internal use: Only used by port binding.
|
Modifier and Type | Field | Description |
---|---|---|
protected int |
mValue |
Modifier and Type | Method | Description |
---|---|---|
static UpnpState |
fromInt(int value) |
|
protected static UpnpState[] |
fromIntArray(int[] values) |
|
int |
toInt() |
|
protected static int[] |
toIntArray(UpnpState[] values) |
|
static UpnpState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static UpnpState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpnpState Idle
public static final UpnpState Pending
public static final UpnpState Adding
public static final UpnpState Removing
public static final UpnpState NotAvailable
public static final UpnpState Ok
public static final UpnpState Ko
public static final UpnpState Blacklisted
public static UpnpState[] values()
for (UpnpState c : UpnpState.values()) System.out.println(c);
public static UpnpState 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 UpnpState fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
protected static UpnpState[] fromIntArray(int[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
protected static int[] toIntArray(UpnpState[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()