Module org.pcap4j.core
Package org.pcap4j.packet
Class IpV6NeighborDiscoverySourceLinkLayerAddressOption.Builder
- java.lang.Object
-
- org.pcap4j.packet.IpV6NeighborDiscoverySourceLinkLayerAddressOption.Builder
-
- All Implemented Interfaces:
LengthBuilder<IpV6NeighborDiscoverySourceLinkLayerAddressOption>
- Enclosing class:
- IpV6NeighborDiscoverySourceLinkLayerAddressOption
public static final class IpV6NeighborDiscoverySourceLinkLayerAddressOption.Builder extends java.lang.Object implements LengthBuilder<IpV6NeighborDiscoverySourceLinkLayerAddressOption>
- Since:
- pcap4j 0.9.15
-
-
Field Summary
Fields Modifier and Type Field Description private booleancorrectLengthAtBuildprivate bytelengthprivate byte[]linkLayerAddress
-
Constructor Summary
Constructors Modifier Constructor Description Builder()privateBuilder(IpV6NeighborDiscoverySourceLinkLayerAddressOption option)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IpV6NeighborDiscoverySourceLinkLayerAddressOptionbuild()IpV6NeighborDiscoverySourceLinkLayerAddressOption.BuildercorrectLengthAtBuild(boolean correctLengthAtBuild)IpV6NeighborDiscoverySourceLinkLayerAddressOption.Builderlength(byte length)IpV6NeighborDiscoverySourceLinkLayerAddressOption.BuilderlinkLayerAddress(byte[] linkLayerAddress)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
private Builder(IpV6NeighborDiscoverySourceLinkLayerAddressOption option)
-
-
Method Detail
-
length
public IpV6NeighborDiscoverySourceLinkLayerAddressOption.Builder length(byte length)
- Parameters:
length- length- Returns:
- this Builder object for method chaining.
-
linkLayerAddress
public IpV6NeighborDiscoverySourceLinkLayerAddressOption.Builder linkLayerAddress(byte[] linkLayerAddress)
- Parameters:
linkLayerAddress- linkLayerAddress- Returns:
- this Builder object for method chaining.
-
correctLengthAtBuild
public IpV6NeighborDiscoverySourceLinkLayerAddressOption.Builder correctLengthAtBuild(boolean correctLengthAtBuild)
- Specified by:
correctLengthAtBuildin interfaceLengthBuilder<IpV6NeighborDiscoverySourceLinkLayerAddressOption>- Parameters:
correctLengthAtBuild- correctLengthAtBuild- Returns:
- LengthBuilder
-
build
public IpV6NeighborDiscoverySourceLinkLayerAddressOption build()
- Specified by:
buildin interfaceLengthBuilder<IpV6NeighborDiscoverySourceLinkLayerAddressOption>- Returns:
- a new object.
-
-