Module org.pcap4j.core
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
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIpV4InternetTimestampOptionTimestampsWithAddresses.TimestampWithAddress
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate java.util.List<IpV4InternetTimestampOptionTimestampsWithAddresses.TimestampWithAddress>timestampsWithAddresses
-
Constructor Summary
Constructors Modifier Constructor Description privateIpV4InternetTimestampOptionTimestampsWithAddresses(byte[] rawData, int offset, int length)IpV4InternetTimestampOptionTimestampsWithAddresses(java.util.List<IpV4InternetTimestampOptionTimestampsWithAddresses.TimestampWithAddress> timestampsWithAddresses)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)byte[]getRawData()java.util.List<IpV4InternetTimestampOptionTimestampsWithAddresses.TimestampWithAddress>getTimestampWithAddress()inthashCode()intlength()static IpV4InternetTimestampOptionTimestampsWithAddressesnewInstance(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
-
timestampsWithAddresses
private final java.util.List<IpV4InternetTimestampOptionTimestampsWithAddresses.TimestampWithAddress> timestampsWithAddresses
-
-
Constructor Detail
-
IpV4InternetTimestampOptionTimestampsWithAddresses
private IpV4InternetTimestampOptionTimestampsWithAddresses(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
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:
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
-
-