public enum IPProto extends Enum<IPProto> implements Constant
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 IPProto |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IPProto[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IPProto IPPROTO_IP
public static final IPProto IPPROTO_HOPOPTS
public static final IPProto IPPROTO_ICMP
public static final IPProto IPPROTO_IGMP
public static final IPProto IPPROTO_IPIP
public static final IPProto IPPROTO_TCP
public static final IPProto IPPROTO_EGP
public static final IPProto IPPROTO_PUP
public static final IPProto IPPROTO_UDP
public static final IPProto IPPROTO_IDP
public static final IPProto IPPROTO_TP
public static final IPProto IPPROTO_IPV6
public static final IPProto IPPROTO_ROUTING
public static final IPProto IPPROTO_FRAGMENT
public static final IPProto IPPROTO_RSVP
public static final IPProto IPPROTO_GRE
public static final IPProto IPPROTO_ESP
public static final IPProto IPPROTO_AH
public static final IPProto IPPROTO_ICMPV6
public static final IPProto IPPROTO_NONE
public static final IPProto IPPROTO_DSTOPTS
public static final IPProto IPPROTO_ENCAP
public static final IPProto IPPROTO_PIM
public static final IPProto IPPROTO_RAW
public static final IPProto IPPROTO_MAX
public static final long MIN_VALUE
public static final long MAX_VALUE
public static IPProto[] values()
for (IPProto c : IPProto.values()) System.out.println(c);
public static IPProto 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.