public class RegexSet extends AbstractSet<String> implements Predicate<String>
Provides the efficient matches(String) method to check for a match against all the combined Regex's
| Constructor and Description |
|---|
RegexSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String pattern) |
void |
clear() |
boolean |
isEmpty() |
Iterator<String> |
iterator() |
boolean |
matches(String s) |
boolean |
remove(Object pattern) |
int |
size() |
boolean |
test(String s) |
equals, hashCode, removeAlladdAll, contains, containsAll, retainAll, toArray, toArray, toStringaddAll, contains, containsAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic int size()
size in interface Collection<String>size in interface Set<String>size in class AbstractCollection<String>public 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 boolean isEmpty()
isEmpty in interface Collection<String>isEmpty in interface Set<String>isEmpty in class AbstractCollection<String>public void clear()
clear in interface Collection<String>clear in interface Set<String>clear in class AbstractCollection<String>public boolean matches(String s)
Copyright © 2010 - 2020 Adobe. All Rights Reserved