public enum AddressFamily extends Enum<AddressFamily> implements Constant
| Enum Constant and Description |
|---|
AF_ALG |
AF_APPLETALK |
AF_AX25 |
AF_BLUETOOTH |
AF_CAN |
AF_DECnet |
AF_IB |
AF_INET |
AF_INET6 |
AF_IPX |
AF_ISDN |
AF_KCM |
AF_KEY |
AF_LLC |
AF_LOCAL |
AF_MAX |
AF_MPLS |
AF_NETLINK |
AF_PPPOX |
AF_RDS |
AF_ROUTE |
AF_SNA |
AF_TIPC |
AF_UNIX |
AF_UNSPEC |
AF_VSOCK |
AF_XDP |
| 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() |
String |
toString() |
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_ISDN
public static final AddressFamily AF_INET6
public static final AddressFamily AF_AX25
public static final AddressFamily AF_KEY
public static final AddressFamily AF_NETLINK
public static final AddressFamily AF_RDS
public static final AddressFamily AF_PPPOX
public static final AddressFamily AF_LLC
public static final AddressFamily AF_IB
public static final AddressFamily AF_MPLS
public static final AddressFamily AF_CAN
public static final AddressFamily AF_TIPC
public static final AddressFamily AF_BLUETOOTH
public static final AddressFamily AF_ALG
public static final AddressFamily AF_VSOCK
public static final AddressFamily AF_KCM
public static final AddressFamily AF_XDP
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 String toString()
toString in class Enum<AddressFamily>public final int value()
Copyright © 2025. All rights reserved.