Package snap.util
Class SetUtils
java.lang.Object
snap.util.CollectionUtils
snap.util.SetUtils
Utility methods for use with Java.util.Set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Set<T>
filter
(Collection<T> aList, Predicate<? super T> pred) Returns a filtered array for given original and Predicate.static <T,
R> Set<R> filterByClass
(Collection<T> aList, Class<R> aClass) Returns list of given class for given original.Methods inherited from class snap.util.CollectionUtils
findMatch, hasMatch
-
Constructor Details
-
SetUtils
public SetUtils()
-
-
Method Details
-
filter
Returns a filtered array for given original and Predicate. -
filterByClass
Returns list of given class for given original.
-