Package org.pcap4j.packet
Class IcmpV4TimestampReplyPacket.Builder
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket.AbstractBuilder
-
- org.pcap4j.packet.IcmpV4TimestampReplyPacket.Builder
-
- All Implemented Interfaces:
java.lang.Iterable<Packet.Builder>
,Packet.Builder
- Enclosing class:
- IcmpV4TimestampReplyPacket
public static final class IcmpV4TimestampReplyPacket.Builder extends AbstractPacket.AbstractBuilder
- Since:
- pcap4j 0.9.11
- Author:
- Kaito Yamada
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description IcmpV4TimestampReplyPacket
build()
Build a packet object using values set to this object.IcmpV4TimestampReplyPacket.Builder
identifier(short identifier)
IcmpV4TimestampReplyPacket.Builder
originateTimestamp(int originateTimestamp)
IcmpV4TimestampReplyPacket.Builder
receiveTimestamp(int receiveTimestamp)
IcmpV4TimestampReplyPacket.Builder
sequenceNumber(short sequenceNumber)
IcmpV4TimestampReplyPacket.Builder
transmitTimestamp(int transmitTimestamp)
-
Methods inherited from class org.pcap4j.packet.AbstractPacket.AbstractBuilder
getPayloadBuilder, payloadBuilder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pcap4j.packet.Packet.Builder
get, getOuterOf, iterator
-
-
-
-
Method Detail
-
identifier
public IcmpV4TimestampReplyPacket.Builder identifier(short identifier)
- Parameters:
identifier
- identifier- Returns:
- this Builder object for method chaining.
-
sequenceNumber
public IcmpV4TimestampReplyPacket.Builder sequenceNumber(short sequenceNumber)
- Parameters:
sequenceNumber
- sequenceNumber- Returns:
- this Builder object for method chaining.
-
originateTimestamp
public IcmpV4TimestampReplyPacket.Builder originateTimestamp(int originateTimestamp)
- Parameters:
originateTimestamp
- originateTimestamp- Returns:
- this Builder object for method chaining.
-
receiveTimestamp
public IcmpV4TimestampReplyPacket.Builder receiveTimestamp(int receiveTimestamp)
- Parameters:
receiveTimestamp
- receiveTimestamp- Returns:
- this Builder object for method chaining.
-
transmitTimestamp
public IcmpV4TimestampReplyPacket.Builder transmitTimestamp(int transmitTimestamp)
- Parameters:
transmitTimestamp
- transmitTimestamp- Returns:
- this Builder object for method chaining.
-
build
public IcmpV4TimestampReplyPacket build()
Description copied from interface:Packet.Builder
Build a packet object using values set to this object.- Specified by:
build
in interfacePacket.Builder
- Specified by:
build
in classAbstractPacket.AbstractBuilder
- Returns:
- a new Packet object
-
-