public enum IpVersionType extends java.lang.Enum<IpVersionType>
Enum Constant and Description |
---|
Automatic
Automatically select the fastest-connecting IP version
|
IPv4
Prefer Pv4
|
IPv6
Prefer Pv6
|
Modifier and Type | Method and Description |
---|---|
static IpVersionType |
fromInt(int i) |
static IpVersionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IpVersionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IpVersionType Automatic
public static final IpVersionType IPv4
public static final IpVersionType IPv6
public static IpVersionType[] values()
for (IpVersionType c : IpVersionType.values()) System.out.println(c);
public static IpVersionType 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 IpVersionType fromInt(int i)