|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.camunda.bpm.engine.impl.util.CollectionUtil
public class CollectionUtil
helper/convience methods for working with collections.
Method Summary | ||
---|---|---|
static
|
addCollectionToMapOfSets(Map<S,Set<T>> map,
S key,
Collection<T> values)
|
|
static
|
addToMapOfLists(Map<S,List<T>> map,
S key,
T value)
|
|
static
|
addToMapOfSets(Map<S,Set<T>> map,
S key,
T value)
|
|
static
|
asArrayList(T[] values)
Arrays.asList cannot be reliably used for SQL parameters on MyBatis < 3.3.0 |
|
static
|
asHashSet(T... elements)
|
|
static Map<String,Object> |
singletonMap(String key,
Object value)
Helper method that creates a singleton map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Map<String,Object> singletonMap(String key, Object value)
public static <T> List<T> asArrayList(T[] values)
public static <T> Set<T> asHashSet(T... elements)
public static <S,T> void addToMapOfLists(Map<S,List<T>> map, S key, T value)
public static <S,T> void addToMapOfSets(Map<S,Set<T>> map, S key, T value)
public static <S,T> void addCollectionToMapOfSets(Map<S,Set<T>> map, S key, Collection<T> values)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |