- java.lang.Object
-
- org.pcap4j.packet.UnknownIpV4Option.Builder
-
- All Implemented Interfaces:
LengthBuilder<UnknownIpV4Option>
- Enclosing class:
- UnknownIpV4Option
public static final class UnknownIpV4Option.Builder extends java.lang.Object implements LengthBuilder<UnknownIpV4Option>
- Since:
- pcap4j 0.9.11
-
-
Field Summary
Fields Modifier and Type Field Description private booleancorrectLengthAtBuildprivate byte[]dataprivate bytelengthprivate IpV4OptionTypetype
-
Constructor Summary
Constructors Modifier Constructor Description Builder()privateBuilder(UnknownIpV4Option option)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnknownIpV4Optionbuild()UnknownIpV4Option.BuildercorrectLengthAtBuild(boolean correctLengthAtBuild)UnknownIpV4Option.Builderdata(byte[] data)UnknownIpV4Option.Builderlength(byte length)UnknownIpV4Option.Buildertype(IpV4OptionType type)
-
-
-
Field Detail
-
type
private IpV4OptionType type
-
length
private byte length
-
data
private byte[] data
-
correctLengthAtBuild
private boolean correctLengthAtBuild
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
private Builder(UnknownIpV4Option option)
-
-
Method Detail
-
type
public UnknownIpV4Option.Builder type(IpV4OptionType type)
- Parameters:
type- type- Returns:
- this Builder object for method chaining.
-
length
public UnknownIpV4Option.Builder length(byte length)
- Parameters:
length- length- Returns:
- this Builder object for method chaining.
-
data
public UnknownIpV4Option.Builder data(byte[] data)
- Parameters:
data- data- Returns:
- this Builder object for method chaining.
-
correctLengthAtBuild
public UnknownIpV4Option.Builder correctLengthAtBuild(boolean correctLengthAtBuild)
- Specified by:
correctLengthAtBuildin interfaceLengthBuilder<UnknownIpV4Option>- Parameters:
correctLengthAtBuild- correctLengthAtBuild- Returns:
- LengthBuilder
-
build
public UnknownIpV4Option build()
- Specified by:
buildin interfaceLengthBuilder<UnknownIpV4Option>- Returns:
- a new object.
-
-