- java.lang.Object
-
- org.pcap4j.packet.IpV4InternetTimestampOption.Builder
-
- All Implemented Interfaces:
LengthBuilder<IpV4InternetTimestampOption>
- Enclosing class:
- IpV4InternetTimestampOption
public static final class IpV4InternetTimestampOption.Builder extends java.lang.Object implements LengthBuilder<IpV4InternetTimestampOption>
- Since:
- pcap4j 0.9.11
-
-
Field Summary
Fields Modifier and Type Field Description private booleancorrectLengthAtBuildprivate IpV4InternetTimestampOption.IpV4InternetTimestampOptionDatadataprivate IpV4InternetTimestampOptionFlagflagprivate bytelengthprivate byteoverflowprivate bytepointer
-
Constructor Summary
Constructors Modifier Constructor Description Builder()privateBuilder(IpV4InternetTimestampOption option)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IpV4InternetTimestampOptionbuild()IpV4InternetTimestampOption.BuildercorrectLengthAtBuild(boolean correctLengthAtBuild)IpV4InternetTimestampOption.Builderdata(IpV4InternetTimestampOption.IpV4InternetTimestampOptionData data)IpV4InternetTimestampOption.Builderflag(IpV4InternetTimestampOptionFlag flag)IpV4InternetTimestampOption.Builderlength(byte length)IpV4InternetTimestampOption.Builderoverflow(byte overflow)IpV4InternetTimestampOption.Builderpointer(byte pointer)
-
-
-
Field Detail
-
length
private byte length
-
pointer
private byte pointer
-
overflow
private byte overflow
-
flag
private IpV4InternetTimestampOptionFlag flag
-
data
private IpV4InternetTimestampOption.IpV4InternetTimestampOptionData data
-
correctLengthAtBuild
private boolean correctLengthAtBuild
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
private Builder(IpV4InternetTimestampOption option)
-
-
Method Detail
-
length
public IpV4InternetTimestampOption.Builder length(byte length)
- Parameters:
length- length- Returns:
- this Builder object for method chaining.
-
pointer
public IpV4InternetTimestampOption.Builder pointer(byte pointer)
- Parameters:
pointer- pointer- Returns:
- this Builder object for method chaining.
-
overflow
public IpV4InternetTimestampOption.Builder overflow(byte overflow)
- Parameters:
overflow- overflow- Returns:
- this Builder object for method chaining.
-
flag
public IpV4InternetTimestampOption.Builder flag(IpV4InternetTimestampOptionFlag flag)
- Parameters:
flag- flag- Returns:
- this Builder object for method chaining.
-
data
public IpV4InternetTimestampOption.Builder data(IpV4InternetTimestampOption.IpV4InternetTimestampOptionData data)
- Parameters:
data- data- Returns:
- this Builder object for method chaining.
-
correctLengthAtBuild
public IpV4InternetTimestampOption.Builder correctLengthAtBuild(boolean correctLengthAtBuild)
- Specified by:
correctLengthAtBuildin interfaceLengthBuilder<IpV4InternetTimestampOption>- Parameters:
correctLengthAtBuild- correctLengthAtBuild- Returns:
- LengthBuilder
-
build
public IpV4InternetTimestampOption build()
- Specified by:
buildin interfaceLengthBuilder<IpV4InternetTimestampOption>- Returns:
- a new object.
-
-