public enum AddressFamily extends Enum<AddressFamily> implements Constant
Enum Constant and Description |
---|
AF_APPLETALK |
AF_AX25 |
AF_DECnet |
AF_INET |
AF_INET6 |
AF_IPX |
AF_LOCAL |
AF_MAX |
AF_ROUTE |
AF_SNA |
AF_UNIX |
AF_UNSPEC |
Modifier and Type | Field and Description |
---|---|
static long |
MAX_VALUE |
static long |
MIN_VALUE |
Modifier and Type | Method and Description |
---|---|
boolean |
defined() |
int |
intValue() |
long |
longValue() |
int |
value() |
static AddressFamily |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AddressFamily[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AddressFamily AF_UNSPEC
public static final AddressFamily AF_LOCAL
public static final AddressFamily AF_UNIX
public static final AddressFamily AF_INET
public static final AddressFamily AF_SNA
public static final AddressFamily AF_DECnet
public static final AddressFamily AF_APPLETALK
public static final AddressFamily AF_ROUTE
public static final AddressFamily AF_IPX
public static final AddressFamily AF_INET6
public static final AddressFamily AF_AX25
public static final AddressFamily AF_MAX
public static final long MIN_VALUE
public static final long MAX_VALUE
public static AddressFamily[] values()
for (AddressFamily c : AddressFamily.values()) System.out.println(c);
public static AddressFamily 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 nullpublic final int value()
Copyright © 2017. All Rights Reserved.