Package org.pcap4j.packet
Class IcmpV4EchoReplyPacket.Builder
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket.AbstractBuilder
-
- org.pcap4j.packet.IcmpV4EchoReplyPacket.Builder
-
- All Implemented Interfaces:
java.lang.Iterable<Packet.Builder>
,Packet.Builder
- Enclosing class:
- IcmpV4EchoReplyPacket
public static final class IcmpV4EchoReplyPacket.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 IcmpV4EchoReplyPacket
build()
Build a packet object using values set to this object.Packet.Builder
getPayloadBuilder()
Get the payload builder of this object.IcmpV4EchoReplyPacket.Builder
identifier(short identifier)
IcmpV4EchoReplyPacket.Builder
payloadBuilder(Packet.Builder payloadBuilder)
Set the payload builder.IcmpV4EchoReplyPacket.Builder
sequenceNumber(short sequenceNumber)
-
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 IcmpV4EchoReplyPacket.Builder identifier(short identifier)
- Parameters:
identifier
- identifier- Returns:
- this Builder object for method chaining.
-
sequenceNumber
public IcmpV4EchoReplyPacket.Builder sequenceNumber(short sequenceNumber)
- Parameters:
sequenceNumber
- sequenceNumber- Returns:
- this Builder object for method chaining.
-
payloadBuilder
public IcmpV4EchoReplyPacket.Builder payloadBuilder(Packet.Builder payloadBuilder)
Description copied from interface:Packet.Builder
Set the payload builder.- Specified by:
payloadBuilder
in interfacePacket.Builder
- Overrides:
payloadBuilder
in classAbstractPacket.AbstractBuilder
- Parameters:
payloadBuilder
- a Builder object to set- Returns:
- this Builder object for method chaining
-
getPayloadBuilder
public Packet.Builder getPayloadBuilder()
Description copied from interface:Packet.Builder
Get the payload builder of this object.- Specified by:
getPayloadBuilder
in interfacePacket.Builder
- Overrides:
getPayloadBuilder
in classAbstractPacket.AbstractBuilder
- Returns:
- the payload builder of this object
-
build
public IcmpV4EchoReplyPacket 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
-
-