public class StringCollectionUtil
extends java.lang.Object
| Constructor and Description |
|---|
StringCollectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
removeMatching(java.util.Collection<java.lang.String> values,
java.util.Collection<java.lang.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(java.util.Collection<java.lang.String> values,
java.lang.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(java.util.Collection<java.lang.String> values,
java.util.Collection<java.lang.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(java.util.Collection<java.lang.String> values,
java.lang.String... patterns)
Retains all values in the subject collection that are matched by
at least one of a collection of regular expressions.
|
public static void retainMatching(java.util.Collection<java.lang.String> values,
java.lang.String... patterns)
This method is a convenience overload for
retainMatching(Collection, Collection).
values - subject value collectionpatterns - patterns to matchpublic static void retainMatching(java.util.Collection<java.lang.String> values,
java.util.Collection<java.lang.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(java.util.Collection<java.lang.String> values,
java.lang.String... patterns)
This method is a convenience overload for
removeMatching(Collection, Collection).
values - subject value collectionpatterns - patterns to matchpublic static void removeMatching(java.util.Collection<java.lang.String> values,
java.util.Collection<java.lang.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 matchCopyright © 2010 - 2023 Adobe. All Rights Reserved