org.broadleafcommerce.common.util
Class BLCArrayUtils

java.lang.Object
  extended by org.broadleafcommerce.common.util.BLCArrayUtils

public class BLCArrayUtils
extends Object

Convenience methods for interacting with arrays

Author:
Andre Azzolini (apazzolini)

Constructor Summary
BLCArrayUtils()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BLCArrayUtils

public BLCArrayUtils()
Method Detail

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.