public enum DualStackMode extends Enum<DualStackMode>
| Enum Constant and Description |
|---|
BOTH
Try both IPv4 and IPv6 to establish a connection.
|
IPV4_ONLY
Only use IPv4 to establish a connection.
|
IPV6_ONLY
Only use IPv6 to establish a connection.
|
| Modifier and Type | Method and Description |
|---|---|
static DualStackMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DualStackMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DualStackMode BOTH
public static final DualStackMode IPV4_ONLY
public static final DualStackMode IPV6_ONLY
public static DualStackMode[] values()
for (DualStackMode c : DualStackMode.values()) System.out.println(c);
public static DualStackMode 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 © 2021. All rights reserved.