- 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
-
-
Field Summary
Fields Modifier and Type Field Description private booleancorrectLengthAtBuildprivate bytelengthprivate inttsEchoReplyprivate inttsValue
-
Constructor Summary
Constructors Modifier Constructor Description Builder()privateBuilder(TcpTimestampsOption option)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TcpTimestampsOptionbuild()TcpTimestampsOption.BuildercorrectLengthAtBuild(boolean correctLengthAtBuild)TcpTimestampsOption.Builderlength(byte length)TcpTimestampsOption.BuildertsEchoReply(int tsEchoReply)TcpTimestampsOption.BuildertsValue(int tsValue)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
private Builder(TcpTimestampsOption option)
-
-
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:
correctLengthAtBuildin interfaceLengthBuilder<TcpTimestampsOption>- Parameters:
correctLengthAtBuild- correctLengthAtBuild- Returns:
- LengthBuilder
-
build
public TcpTimestampsOption build()
- Specified by:
buildin interfaceLengthBuilder<TcpTimestampsOption>- Returns:
- a new object.
-
-