- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Byte,IpV4InternetTimestampOptionFlag>
-
- org.pcap4j.packet.namednumber.IpV4InternetTimestampOptionFlag
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IpV4InternetTimestampOptionFlag>
public final class IpV4InternetTimestampOptionFlag extends NamedNumber<java.lang.Byte,IpV4InternetTimestampOptionFlag>
Flag of IPv4 Internet Timestamp Option- Since:
- pcap4j 0.9.11
- See Also:
- RFC 791, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IpV4InternetTimestampOptionFlagADDRESS_PRESPECIFIEDthe internet address fields are prespecified: 3static IpV4InternetTimestampOptionFlagEACH_TIMESTAMP_PRECEDED_WITH_ADDRESSeach timestamp is preceded with internet address of the registering entity: 1private static java.util.Map<java.lang.Byte,IpV4InternetTimestampOptionFlag>registryprivate static longserialVersionUIDstatic IpV4InternetTimestampOptionFlagTIMESTAMPS_ONLYtimestamps only: 0
-
Constructor Summary
Constructors Constructor Description IpV4InternetTimestampOptionFlag(java.lang.Byte value, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IpV4InternetTimestampOptionFlag o)static IpV4InternetTimestampOptionFlaggetInstance(java.lang.Byte value)static IpV4InternetTimestampOptionFlagregister(IpV4InternetTimestampOptionFlag flag)-
Methods inherited from class org.pcap4j.packet.namednumber.NamedNumber
equals, hashCode, name, toString, value, valueAsString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
TIMESTAMPS_ONLY
public static final IpV4InternetTimestampOptionFlag TIMESTAMPS_ONLY
timestamps only: 0
-
EACH_TIMESTAMP_PRECEDED_WITH_ADDRESS
public static final IpV4InternetTimestampOptionFlag EACH_TIMESTAMP_PRECEDED_WITH_ADDRESS
each timestamp is preceded with internet address of the registering entity: 1
-
ADDRESS_PRESPECIFIED
public static final IpV4InternetTimestampOptionFlag ADDRESS_PRESPECIFIED
the internet address fields are prespecified: 3
-
registry
private static final java.util.Map<java.lang.Byte,IpV4InternetTimestampOptionFlag> registry
-
-
Method Detail
-
getInstance
public static IpV4InternetTimestampOptionFlag getInstance(java.lang.Byte value)
- Parameters:
value- value- Returns:
- a IpV4InternetTimestampOptionFlag object.
-
register
public static IpV4InternetTimestampOptionFlag register(IpV4InternetTimestampOptionFlag flag)
- Parameters:
flag- flag- Returns:
- a IpV4InternetTimestampOptionFlag object.
-
compareTo
public int compareTo(IpV4InternetTimestampOptionFlag o)
- Specified by:
compareToin interfacejava.lang.Comparable<IpV4InternetTimestampOptionFlag>- Specified by:
compareToin classNamedNumber<java.lang.Byte,IpV4InternetTimestampOptionFlag>
-
-