public class RegexSet extends AbstractSet<String>
Provides the efficient matches(String)
method to check for a match against all the combined Regex's
Modifier and Type | Field and Description |
---|---|
static BiFunction<RegexSet,String,Boolean> |
MATCHER |
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() |
equals, hashCode, removeAll
addAll, contains, containsAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public static final BiFunction<RegexSet,String,Boolean> MATCHER
public 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 © 1995-2015 Webtide. All Rights Reserved.