|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.util.StringCollectionUtil
public class StringCollectionUtil
Static utility methods for working with collections of strings.
Constructor Summary | |
---|---|
StringCollectionUtil()
|
Method Summary | |
---|---|
static void |
removeMatching(Collection<String> values,
Collection<String> patterns)
Removes all values in the subject collection that are matched by at least one of a collection of regular expressions. |
static void |
removeMatching(Collection<String> values,
String... patterns)
Removes all values in the subject collection that are matched by at least one of a collection of regular expressions. |
static void |
retainMatching(Collection<String> values,
Collection<String> patterns)
Retains all values in the subject collection that are matched by at least one of a collection of regular expressions. |
static void |
retainMatching(Collection<String> values,
String... patterns)
Retains all values in the subject collection that are matched by at least one of a collection of regular expressions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringCollectionUtil()
Method Detail |
---|
public static void retainMatching(Collection<String> values, String... patterns)
This method is a convenience overload for
retainMatching(Collection, Collection)
.
values
- subject value collectionpatterns
- patterns to matchpublic static void retainMatching(Collection<String> values, Collection<String> patterns)
The semantics of this method are conceptually similar to
Collection.retainAll(Collection)
, but uses pattern matching
instead of exact matching.
values
- subject value collectionpatterns
- patterns to matchpublic static void removeMatching(Collection<String> values, String... patterns)
This method is a convenience overload for
removeMatching(Collection, Collection)
.
values
- subject value collectionpatterns
- patterns to matchpublic static void removeMatching(Collection<String> values, Collection<String> patterns)
The semantics of this method are conceptually similar to
Collection.removeAll(Collection)
, but uses pattern matching
instead of exact matching.
values
- subject value collectionpatterns
- patterns to match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |