public class OptionsField
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
options
A map of option code (Integer)->DhcpOption.
|
| Constructor and Description |
|---|
OptionsField() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(DhcpOption option) |
void |
clear() |
DhcpOption |
get(java.lang.Class optionClass)
Return the (first) DHCP option matching a given option class or
null of the option isn't set. |
DhcpOption |
get(int tag)
Return the (first) DHCP option matching a given tag or
null
of the option isn't set. |
boolean |
isEmpty() |
java.util.Iterator |
iterator() |
void |
merge(OptionsField options)
Merge the options from the given options field into my options.
|
void |
remove(java.lang.Class c)
Remove instances of the given option class.
|
void |
remove(int tag)
Remove options matching the given tag
|
private java.util.Map options
public void add(DhcpOption option)
public boolean isEmpty()
public java.util.Iterator iterator()
public DhcpOption get(java.lang.Class optionClass)
null of the option isn't set.optionClass - public DhcpOption get(int tag)
null
of the option isn't set.tag - public void merge(OptionsField options)
options - public void remove(java.lang.Class c)
c - public void remove(int tag)
tag - public void clear()
Map.clear()