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() |
boolean |
remove(Object pattern) |
int |
size() |
boolean |
test(InetAddress address) |
equals, hashCode, removeAlladdAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toStringaddAll, 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>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 © 2010 - 2020 Adobe. All Rights Reserved