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