org.broadleafcommerce.common.util
Class BLCArrayUtils
java.lang.Object
org.broadleafcommerce.common.util.BLCArrayUtils
public class BLCArrayUtils
- extends Object
Convenience methods for interacting with arrays
- Author:
- Andre Azzolini (apazzolini)
|
Method Summary |
static
|
contains(T[] array,
TypedPredicate<T> predicate)
Given an array and a typed predicate, determines if the array has an object that matches the condition of the
predicate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLCArrayUtils
public BLCArrayUtils()
contains
public static <T> boolean contains(T[] array,
TypedPredicate<T> predicate)
- Given an array and a typed predicate, determines if the array has an object that matches the condition of the
predicate. The predicate should evaluate to true when a match occurs.
- Parameters:
array - predicate -
- Returns:
- whether or not the array contains an element that matches the predicate
Copyright © 2013. All Rights Reserved.