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