public static enum IpAddress.Family extends Enum<IpAddress.Family>
| Enum Constant and Description |
|---|
IPv4
IPv4 family of IP Addresses.
|
IPv6
IPv6 family of IP Addresses.
|
| Modifier and Type | Method and Description |
|---|---|
static IpAddress.Family |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpAddress.Family[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IpAddress.Family IPv4
public static final IpAddress.Family IPv6
public static IpAddress.Family[] values()
for (IpAddress.Family c : IpAddress.Family.values()) System.out.println(c);
public static IpAddress.Family 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 © 2014. All Rights Reserved.