Package org.pcap4j.packet
Class TcpTimestampsOption.Builder
- java.lang.Object
-
- org.pcap4j.packet.TcpTimestampsOption.Builder
-
- All Implemented Interfaces:
LengthBuilder<TcpTimestampsOption>
- Enclosing class:
- TcpTimestampsOption
public static final class TcpTimestampsOption.Builder extends java.lang.Object implements LengthBuilder<TcpTimestampsOption>
- Since:
- pcap4j 1.2.0
- Author:
- Kaito Yamada
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description TcpTimestampsOption
build()
TcpTimestampsOption.Builder
correctLengthAtBuild(boolean correctLengthAtBuild)
TcpTimestampsOption.Builder
length(byte length)
TcpTimestampsOption.Builder
tsEchoReply(int tsEchoReply)
TcpTimestampsOption.Builder
tsValue(int tsValue)
-
-
-
Method Detail
-
length
public TcpTimestampsOption.Builder length(byte length)
- Parameters:
length
- length- Returns:
- this Builder object for method chaining.
-
tsValue
public TcpTimestampsOption.Builder tsValue(int tsValue)
- Parameters:
tsValue
- tsValue- Returns:
- this Builder object for method chaining.
-
tsEchoReply
public TcpTimestampsOption.Builder tsEchoReply(int tsEchoReply)
- Parameters:
tsEchoReply
- tsEchoReply- Returns:
- this Builder object for method chaining.
-
correctLengthAtBuild
public TcpTimestampsOption.Builder correctLengthAtBuild(boolean correctLengthAtBuild)
- Specified by:
correctLengthAtBuild
in interfaceLengthBuilder<TcpTimestampsOption>
- Parameters:
correctLengthAtBuild
- correctLengthAtBuild- Returns:
- LengthBuilder
-
build
public TcpTimestampsOption build()
- Specified by:
build
in interfaceLengthBuilder<TcpTimestampsOption>
- Returns:
- a new object.
-
-