public class CollectionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <S,T> void |
addToMapOfLists(Map<S,List<T>> map,
S key,
T value) |
static <T> List<T> |
asArrayList(T[] values)
Arrays.asList cannot be reliably used for SQL parameters on MyBatis < 3.3.0
|
static Map<String,Object> |
singletonMap(String key,
Object value)
Helper method that creates a singleton map.
|
public static Map<String,Object> singletonMap(String key, Object value)
public static <T> List<T> asArrayList(T[] values)
Copyright © 2018. All rights reserved.