Constructor and Description |
---|
Builder()
Create a new builder using the defaults:
|
Builder(Arp arp)
Copy constructor builder initialized from the passed in protocol.
|
Modifier and Type | Method and Description |
---|---|
Arp |
build()
Creates a new protocol instance from this builder.
|
Arp.Builder |
hwType(HardwareType hwType)
Sets the hardware type.
|
Arp.Builder |
opCode(Arp.OpCode opCode)
Sets the operation code.
|
Arp.Builder |
senderIpAddr(IpAddress senderIpAddr)
Sets the sender IP address.
|
Arp.Builder |
senderMacAddr(MacAddress senderMacAddr)
Sets the sender MAC address.
|
Arp.Builder |
targetIpAddr(IpAddress targetIpAddr)
Sets the target IP address.
|
Arp.Builder |
targetMacAddr(MacAddress targetMacAddr)
Sets the target MAC address.
|
public Builder()
hwType = ETHERNET opCode = REQ
public Builder(Arp arp)
arp
- builder is initialed from this protocol's datapublic Arp build()
public Arp.Builder hwType(HardwareType hwType)
hwType
- hardware type enumerationpublic Arp.Builder opCode(Arp.OpCode opCode)
opCode
- operation code enumerationpublic Arp.Builder senderMacAddr(MacAddress senderMacAddr)
senderMacAddr
- sender MAC addresspublic Arp.Builder senderIpAddr(IpAddress senderIpAddr)
senderIpAddr
- sender IP addresspublic Arp.Builder targetMacAddr(MacAddress targetMacAddr)
targetMacAddr
- target MAC addresspublic Arp.Builder targetIpAddr(IpAddress targetIpAddr)
targetIpAddr
- target IP addressCopyright © 2016. All Rights Reserved.