Module org.pcap4j.core
Package org.pcap4j.packet
Class IpV4InternetTimestampOptionAddressPrespecified
- java.lang.Object
-
- org.pcap4j.packet.IpV4InternetTimestampOptionAddressPrespecified
-
- All Implemented Interfaces:
java.io.Serializable,IpV4InternetTimestampOption.IpV4InternetTimestampOptionData
public final class IpV4InternetTimestampOptionAddressPrespecified extends java.lang.Object implements IpV4InternetTimestampOption.IpV4InternetTimestampOptionData
- Since:
- pcap4j 0.9.11
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.Inet4Addressaddressprivate static longserialVersionUIDprivate java.util.List<java.lang.Integer>timestamps
-
Constructor Summary
Constructors Modifier Constructor Description privateIpV4InternetTimestampOptionAddressPrespecified(byte[] rawData, int offset, int length)IpV4InternetTimestampOptionAddressPrespecified(java.net.Inet4Address address, java.util.List<java.lang.Integer> timestamps)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.net.Inet4AddressgetAddress()byte[]getRawData()java.util.List<java.lang.Integer>getTimestamps()inthashCode()intlength()static IpV4InternetTimestampOptionAddressPrespecifiednewInstance(byte[] rawData, int offset, int length)A static factory method.java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
address
private final java.net.Inet4Address address
-
timestamps
private final java.util.List<java.lang.Integer> timestamps
-
-
Constructor Detail
-
IpV4InternetTimestampOptionAddressPrespecified
private IpV4InternetTimestampOptionAddressPrespecified(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
IpV4InternetTimestampOptionAddressPrespecified
public IpV4InternetTimestampOptionAddressPrespecified(java.net.Inet4Address address, java.util.List<java.lang.Integer> timestamps)- Parameters:
address- addresstimestamps- timestamps
-
-
Method Detail
-
newInstance
public static IpV4InternetTimestampOptionAddressPrespecified newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new IpV4InternetTimestampOptionAddressPrespecified object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getAddress
public java.net.Inet4Address getAddress()
- Returns:
- address
-
getTimestamps
public java.util.List<java.lang.Integer> getTimestamps()
- Returns:
- timestamps
-
length
public int length()
- Specified by:
lengthin interfaceIpV4InternetTimestampOption.IpV4InternetTimestampOptionData- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawDatain interfaceIpV4InternetTimestampOption.IpV4InternetTimestampOptionData- Returns:
- raw data
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-