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 Object
implements LengthBuilder<TcpTimestampsOption>
- Since:
- pcap4j 1.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate byteprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()correctLengthAtBuild(boolean correctLengthAtBuild) length(byte length) tsEchoReply(int tsEchoReply) tsValue(int tsValue)
-
Field Details
-
length
private byte length -
tsValue
private int tsValue -
tsEchoReply
private int tsEchoReply -
correctLengthAtBuild
private boolean correctLengthAtBuild
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
length
- Parameters:
length- length- Returns:
- this Builder object for method chaining.
-
tsValue
- Parameters:
tsValue- tsValue- Returns:
- this Builder object for method chaining.
-
tsEchoReply
- Parameters:
tsEchoReply- tsEchoReply- Returns:
- this Builder object for method chaining.
-
correctLengthAtBuild
- Specified by:
correctLengthAtBuildin interfaceLengthBuilder<TcpTimestampsOption>- Parameters:
correctLengthAtBuild- correctLengthAtBuild- Returns:
- LengthBuilder
-
build
- Specified by:
buildin interfaceLengthBuilder<TcpTimestampsOption>- Returns:
- a new object.
-