Class UnknownIpV4Option.Builder
java.lang.Object
org.pcap4j.packet.UnknownIpV4Option.Builder
- All Implemented Interfaces:
LengthBuilder<UnknownIpV4Option>
- Enclosing class:
UnknownIpV4Option
public static final class UnknownIpV4Option.Builder
extends Object
implements LengthBuilder<UnknownIpV4Option>
- Since:
- pcap4j 0.9.11
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate byte[]private byteprivate IpV4OptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()correctLengthAtBuild(boolean correctLengthAtBuild) data(byte[] data) length(byte length) type(IpV4OptionType type)
-
Field Details
-
type
-
length
private byte length -
data
private byte[] data -
correctLengthAtBuild
private boolean correctLengthAtBuild
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
type
- Parameters:
type- type- Returns:
- this Builder object for method chaining.
-
length
- Parameters:
length- length- Returns:
- this Builder object for method chaining.
-
data
- Parameters:
data- data- Returns:
- this Builder object for method chaining.
-
correctLengthAtBuild
- Specified by:
correctLengthAtBuildin interfaceLengthBuilder<UnknownIpV4Option>- Parameters:
correctLengthAtBuild- correctLengthAtBuild- Returns:
- LengthBuilder
-
build
- Specified by:
buildin interfaceLengthBuilder<UnknownIpV4Option>- Returns:
- a new object.
-