public static enum ApnInfo.ProtocolType extends java.lang.Enum<ApnInfo.ProtocolType>
| Enum Constant and Description |
|---|
IPV4 |
IPV4_OR_IPV6 |
IPV6 |
| Modifier and Type | Method and Description |
|---|---|
static ApnInfo.ProtocolType |
findByName(java.lang.String name) |
static ApnInfo.ProtocolType |
findByValue(java.lang.String value) |
java.lang.String |
type() |
static ApnInfo.ProtocolType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ApnInfo.ProtocolType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApnInfo.ProtocolType IPV4
public static final ApnInfo.ProtocolType IPV6
public static final ApnInfo.ProtocolType IPV4_OR_IPV6
public static ApnInfo.ProtocolType[] values()
for (ApnInfo.ProtocolType c : ApnInfo.ProtocolType.values()) System.out.println(c);
public static ApnInfo.ProtocolType 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 java.lang.String type()
public static ApnInfo.ProtocolType findByValue(java.lang.String value)
public static ApnInfo.ProtocolType findByName(java.lang.String name)