Module org.pcap4j.core
Package org.pcap4j.packet
Class IpV4InternetTimestampOptionTimestampsWithAddresses
java.lang.Object
org.pcap4j.packet.IpV4InternetTimestampOptionTimestampsWithAddresses
- All Implemented Interfaces:
Serializable,IpV4InternetTimestampOption.IpV4InternetTimestampOptionData
public final class IpV4InternetTimestampOptionTimestampsWithAddresses
extends Object
implements IpV4InternetTimestampOption.IpV4InternetTimestampOptionData
- Since:
- pcap4j 0.9.11
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIpV4InternetTimestampOptionTimestampsWithAddresses(byte[] rawData, int offset, int length) IpV4InternetTimestampOptionTimestampsWithAddresses(List<IpV4InternetTimestampOptionTimestampsWithAddresses.TimestampWithAddress> timestampsWithAddresses) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]inthashCode()intlength()newInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
timestampsWithAddresses
private final List<IpV4InternetTimestampOptionTimestampsWithAddresses.TimestampWithAddress> timestampsWithAddresses
-
-
Constructor Details
-
IpV4InternetTimestampOptionTimestampsWithAddresses
private IpV4InternetTimestampOptionTimestampsWithAddresses(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
IpV4InternetTimestampOptionTimestampsWithAddresses
public IpV4InternetTimestampOptionTimestampsWithAddresses(List<IpV4InternetTimestampOptionTimestampsWithAddresses.TimestampWithAddress> timestampsWithAddresses) - Parameters:
timestampsWithAddresses- timestampsWithAddresses
-
-
Method Details
-
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 List<IpV4InternetTimestampOptionTimestampsWithAddresses.TimestampWithAddress> getTimestampWithAddress()- Returns:
- timestampsWithAddresses
-
length
public int length()- Specified by:
lengthin interfaceIpV4InternetTimestampOption.IpV4InternetTimestampOptionData- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceIpV4InternetTimestampOption.IpV4InternetTimestampOptionData- Returns:
- raw data
-
toString
-
equals
-
hashCode
public int hashCode()
-