public class OptionsField extends Object
Constructor and Description |
---|
OptionsField() |
Modifier and Type | Method and Description |
---|---|
void |
add(DhcpOption option) |
void |
clear() |
DhcpOption |
get(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() |
Iterator |
iterator() |
void |
merge(OptionsField options)
Merge the options from the given options field into my options.
|
void |
remove(Class c)
Remove instances of the given option class.
|
void |
remove(int tag)
Remove options matching the given tag
|
public OptionsField()
public void add(DhcpOption option)
public boolean isEmpty()
public DhcpOption get(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(int tag)
tag
- public void clear()
Map.clear()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.