Package org.eclipse.jetty.util
Class RegexSet
A Set of Regular expressions strings.
Provides the efficient matches(String)
method to check for a match against all the combined Regex's
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
addAll, contains, containsAll, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
RegexSet
public RegexSet()
-
-
Method Details
-
iterator
-
size
public int size()- Specified by:
size
in interfaceCollection<String>
- Specified by:
size
in interfaceSet<String>
- Specified by:
size
in classAbstractCollection<String>
-
add
- Specified by:
add
in interfaceCollection<String>
- Specified by:
add
in interfaceSet<String>
- Overrides:
add
in classAbstractCollection<String>
-
remove
- Specified by:
remove
in interfaceCollection<String>
- Specified by:
remove
in interfaceSet<String>
- Overrides:
remove
in classAbstractCollection<String>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<String>
- Specified by:
isEmpty
in interfaceSet<String>
- Overrides:
isEmpty
in classAbstractCollection<String>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<String>
- Specified by:
clear
in interfaceSet<String>
- Overrides:
clear
in classAbstractCollection<String>
-
test
-
matches
-