public static enum IcmpOptionV6.Type extends Enum<IcmpOptionV6.Type> implements ProtocolEnum
Enum Constant and Description |
---|
MTU
MTU.
|
PREFIX_INFO
Prefix information.
|
REDIRECT_HDR
Redirected header.
|
SRC_LL_ADDR
Source link-layer address.
|
TARGET_LL_ADDR
Target link-layer address.
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static IcmpOptionV6.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IcmpOptionV6.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IcmpOptionV6.Type SRC_LL_ADDR
public static final IcmpOptionV6.Type TARGET_LL_ADDR
public static final IcmpOptionV6.Type PREFIX_INFO
public static final IcmpOptionV6.Type REDIRECT_HDR
public static final IcmpOptionV6.Type MTU
public static IcmpOptionV6.Type[] values()
for (IcmpOptionV6.Type c : IcmpOptionV6.Type.values()) System.out.println(c);
public static IcmpOptionV6.Type 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 int code()
ProtocolEnum
code
in interface ProtocolEnum
Copyright © 2015. All Rights Reserved.