public enum ProtocolFamily extends Enum<ProtocolFamily> implements Constant
Enum Constant and Description |
---|
PF_APPLETALK |
PF_DECnet |
PF_INET |
PF_INET6 |
PF_IPX |
PF_KEY |
PF_LOCAL |
PF_MAX |
PF_ROUTE |
PF_SNA |
PF_UNIX |
PF_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 ProtocolFamily |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolFamily[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolFamily PF_UNSPEC
public static final ProtocolFamily PF_LOCAL
public static final ProtocolFamily PF_UNIX
public static final ProtocolFamily PF_INET
public static final ProtocolFamily PF_SNA
public static final ProtocolFamily PF_DECnet
public static final ProtocolFamily PF_APPLETALK
public static final ProtocolFamily PF_ROUTE
public static final ProtocolFamily PF_IPX
public static final ProtocolFamily PF_KEY
public static final ProtocolFamily PF_INET6
public static final ProtocolFamily PF_MAX
public static final long MIN_VALUE
public static final long MAX_VALUE
public static ProtocolFamily[] values()
for (ProtocolFamily c : ProtocolFamily.values()) System.out.println(c);
public static ProtocolFamily 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.