|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.common.util.BLCArrayUtils
public class BLCArrayUtils
Convenience methods for interacting with arrays
| Constructor Summary | |
|---|---|
BLCArrayUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
asList(T[] array)
Given an input array, will return an ArrayList representation of the array. |
|
static
|
collect(Object[] array,
TypedTransformer<T> transformer)
Similar to the CollectionUtils collect except that it works on an array instead of a Java Collection |
|
static
|
collectSet(Object[] array,
TypedTransformer<T> transformer)
The same as collect(Object[], TypedTransformer) but returns a set. |
|
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 |
| Constructor Detail |
|---|
public BLCArrayUtils()
| Method Detail |
|---|
public static <T> boolean contains(T[] array,
TypedPredicate<T> predicate)
array - predicate -
public static <T> ArrayList<T> asList(T[] array)
array -
public static <T,O> ArrayList<T> collect(Object[] array,
TypedTransformer<T> transformer)
array - transformer -
public static <T,O> HashSet<T> collectSet(Object[] array,
TypedTransformer<T> transformer)
collect(Object[], TypedTransformer) but returns a set.
array - transformer -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||