This is a Set of String patterns that are used to match
a Predicate over InetAddress for containment semantics.
The patterns that may be set are defined in InetAddressPattern.
This class is designed to work with IncludeExcludeSet
IncludeExcludeSet
| Modifier and Type | Field and Description |
|---|---|
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(String
element to be added to this set pattern)Overrides java. Implements java. |
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public boolean | remove(Object
object to be removed from this set, if present pattern)Overrides java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| public boolean | test(InetAddress
the input argument address)Implements java. |
| _patterns | back to summary |
|---|---|
| private Map<String, InetAddressPattern> _patterns | |
| InetAddressSet | back to summary |
|---|---|
| public InetAddressSet() | |
| add | back to summary |
|---|---|
| public boolean add(String pattern) Overrides java. Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee). | |
| remove | back to summary |
|---|---|
| public boolean remove(Object pattern) Overrides java. Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| test | back to summary |
|---|---|
| public boolean test(InetAddress address) Implements java. Doc from java. Evaluates this predicate on the given argument.
| |