com.github.dandelion.datatables.core.util
Class CollectionUtils

java.lang.Object
  extended by com.github.dandelion.datatables.core.util.CollectionUtils

public class CollectionUtils
extends Object


Constructor Summary
CollectionUtils()
           
 
Method Summary
static boolean containsAny(Collection<?> source, Object... candidates)
          Return true if any element in 'candidates' is contained in 'source', otherwise returns false.
static Boolean hasConfigurationWithValue(Map<ConfigToken<?>,Object> confMap, ConfigToken<?> config, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUtils

public CollectionUtils()
Method Detail

hasConfigurationWithValue

public static Boolean hasConfigurationWithValue(Map<ConfigToken<?>,Object> confMap,
                                                ConfigToken<?> config,
                                                Object value)

containsAny

public static boolean containsAny(Collection<?> source,
                                  Object... candidates)
Return true if any element in 'candidates' is contained in 'source', otherwise returns false.

Parameters:
source - the source Collection.
candidates - the candidates to search for.
Returns:
whether any of the candidates has been found.


Copyright © 2013–2014 Dandelion Project. All rights reserved.