public static enum ApnInfo.ProtocolType extends java.lang.Enum<ApnInfo.ProtocolType>
Enum Constant and Description |
---|
PROTOCOL_TYPE_IPV4
The id for apn protocol IPv4 type.
|
PROTOCOL_TYPE_IPV4V6
The id for apn protocol IPv4 or IPv6 type.
|
PROTOCOL_TYPE_IPV6
The id for apn protocol IPv6 type.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets constant value.
|
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 PROTOCOL_TYPE_IPV4
public static final ApnInfo.ProtocolType PROTOCOL_TYPE_IPV6
public static final ApnInfo.ProtocolType PROTOCOL_TYPE_IPV4V6
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 int getValue()