Package org.eclipse.jetty.util
Class InetAddressSet
- All Implemented Interfaces:
Iterable<String>,Collection<String>,Predicate<InetAddress>,Set<String>
public class InetAddressSet
extends AbstractSet<String>
implements Set<String>, Predicate<InetAddress>
A set of InetAddress patterns.
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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
InetAddressSet
public InetAddressSet()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<String>- Specified by:
addin interfaceSet<String>- Overrides:
addin classAbstractCollection<String>
-
remove
- Specified by:
removein interfaceCollection<String>- Specified by:
removein interfaceSet<String>- Overrides:
removein classAbstractCollection<String>
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<String>- Specified by:
sizein interfaceSet<String>- Specified by:
sizein classAbstractCollection<String>
-
test
- Specified by:
testin interfacePredicate<InetAddress>
-