public class InetAddressSet extends AbstractSet<String> implements Set<String>, Predicate<InetAddress>
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:
InetAddress are accepted. Not ethat using hostname
matches may force domain lookups. eg. "[::1]", "1.2.3.4", "::ffff:127.0.0.1"IPAddressMap for IPv4 only.
eg. "10.10.10-14.0-128"This class is designed to work with IncludeExcludeSet
IncludeExcludeSet| Constructor and Description |
|---|
InetAddressSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String pattern) |
Iterator<String> |
iterator() |
protected org.eclipse.jetty.util.InetAddressSet.InetPattern |
newInetRange(String pattern) |
boolean |
remove(Object pattern) |
int |
size() |
boolean |
test(InetAddress address) |
equals, hashCode, removeAlladdAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic boolean add(String pattern)
add in interface Collection<String>add in interface Set<String>add in class AbstractCollection<String>protected org.eclipse.jetty.util.InetAddressSet.InetPattern newInetRange(String pattern)
public boolean remove(Object pattern)
remove in interface Collection<String>remove in interface Set<String>remove in class AbstractCollection<String>public int size()
size in interface Collection<String>size in interface Set<String>size in class AbstractCollection<String>public boolean test(InetAddress address)
test in interface Predicate<InetAddress>Copyright © 1995–2017 Webtide. All rights reserved.