- java.lang.Object
-
- java.lang.Enum<IpV4OptionType.IpV4OptionClass>
-
- org.pcap4j.packet.namednumber.IpV4OptionType.IpV4OptionClass
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IpV4OptionType.IpV4OptionClass>
- Enclosing class:
- IpV4OptionType
public static enum IpV4OptionType.IpV4OptionClass extends java.lang.Enum<IpV4OptionType.IpV4OptionClass>
- Since:
- pcap4j 0.9.11
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTROLDEBUGGING_AND_MEASUREMENTRESERVED_FOR_FUTURE_USE1RESERVED_FOR_FUTURE_USE3
-
Field Summary
Fields Modifier and Type Field Description private bytevalue
-
Constructor Summary
Constructors Modifier Constructor Description privateIpV4OptionClass(byte value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static IpV4OptionType.IpV4OptionClassvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IpV4OptionType.IpV4OptionClass[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTROL
public static final IpV4OptionType.IpV4OptionClass CONTROL
-
RESERVED_FOR_FUTURE_USE1
public static final IpV4OptionType.IpV4OptionClass RESERVED_FOR_FUTURE_USE1
-
DEBUGGING_AND_MEASUREMENT
public static final IpV4OptionType.IpV4OptionClass DEBUGGING_AND_MEASUREMENT
-
RESERVED_FOR_FUTURE_USE3
public static final IpV4OptionType.IpV4OptionClass RESERVED_FOR_FUTURE_USE3
-
-
Method Detail
-
values
public static IpV4OptionType.IpV4OptionClass[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IpV4OptionType.IpV4OptionClass c : IpV4OptionType.IpV4OptionClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IpV4OptionType.IpV4OptionClass valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
- Returns:
- value
-
-