Package org.pcap4j.packet
Class IpV4InternetTimestampOptionTimestamps
- java.lang.Object
-
- org.pcap4j.packet.IpV4InternetTimestampOptionTimestamps
-
- All Implemented Interfaces:
java.io.Serializable
,IpV4InternetTimestampOption.IpV4InternetTimestampOptionData
public final class IpV4InternetTimestampOptionTimestamps extends java.lang.Object implements IpV4InternetTimestampOption.IpV4InternetTimestampOptionData
- Since:
- pcap4j 0.9.11
- Author:
- Kaito Yamada
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IpV4InternetTimestampOptionTimestamps(java.util.List<java.lang.Integer> timestamps)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
byte[]
getRawData()
java.util.List<java.lang.Integer>
getTimestamps()
int
hashCode()
int
length()
static IpV4InternetTimestampOptionTimestamps
newInstance(byte[] rawData, int offset, int length)
A static factory method.java.lang.String
toString()
-
-
-
Method Detail
-
newInstance
public static IpV4InternetTimestampOptionTimestamps 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 IpV4InternetTimestampOptionTimestamps object.
- Throws:
IllegalRawDataException
- if parsing the raw data fails.
-
getTimestamps
public java.util.List<java.lang.Integer> getTimestamps()
- Returns:
- timestamps
-
length
public int length()
- Specified by:
length
in interfaceIpV4InternetTimestampOption.IpV4InternetTimestampOptionData
- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawData
in interfaceIpV4InternetTimestampOption.IpV4InternetTimestampOptionData
- Returns:
- raw data
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-