Package snap.util
Class CollectionUtils
java.lang.Object
snap.util.CollectionUtils
- Direct Known Subclasses:
SetUtils
Utility methods for use with Java.util.Collection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
findMatch
(Collection<T> aList, Predicate<? super T> aPred) Returns the first item in collection that matches given predicate (or null).static <T> boolean
hasMatch
(Collection<T> aList, Predicate<? super T> aPred) Returns whether given collection has match for given predicate.
-
Constructor Details
-
CollectionUtils
public CollectionUtils()
-
-
Method Details
-
hasMatch
Returns whether given collection has match for given predicate. -
findMatch
Returns the first item in collection that matches given predicate (or null).
-