@Authors(value="Nikolche Mihajlovski") @Since(value="5.1.0") public class Coll extends RapidoidThing
| Constructor and Description |
|---|
Coll() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
assign(Collection<? super T> destination,
T[] source) |
static <T> void |
assign(Collection<T> destination,
Collection<? extends T> source) |
static <K,V> void |
assign(Map<K,V> destination,
Map<? extends K,? extends V> source) |
static <K,V> Map<K,V> |
autoExpandingMap(Class<?> clazz) |
static <K,V> Map<K,V> |
autoExpandingMap(Mapper<K,V> valueFactory) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap() |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key,
V value) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key1,
V value1,
K key2,
V value2) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(Map<? extends K,? extends V> src,
boolean ignoreNullValues) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(Object... keysAndValues) |
static <T> Set<T> |
concurrentSet() |
static <K,V> V |
get(Map<K,V> map,
K key) |
static <K,V> V |
get(Map<K,V> map,
K key,
V defaultValue) |
static Integer |
getSizeOrNull(Iterable<?> items) |
static boolean |
isCollection(Object obj) |
static boolean |
isList(Object obj) |
static boolean |
isMap(Object obj) |
static boolean |
isSet(Object obj) |
static <K,V> Map<K,List<V>> |
mapOfLists() |
static <K1,K2,V> Map<K1,Map<K2,List<V>>> |
mapOfMapOfLists() |
static <K1,K2,K3,V> |
mapOfMapOfMaps() |
static <K1,K2,V> Map<K1,Map<K2,Set<V>>> |
mapOfMapOfSets() |
static <K1,K2,V> Map<K1,Map<K2,V>> |
mapOfMaps() |
static <K,V> Map<K,Set<V>> |
mapOfSets() |
static <K,V> Map<K,V> |
orderedMap() |
static <K,V> Map<K,V> |
orderedMap(K key,
V value) |
static <K,V> Map<K,V> |
orderedMap(K key1,
V value1,
K key2,
V value2) |
static <K,V> Map<K,V> |
orderedMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
static <K,V> Map<K,V> |
orderedMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
static <K,V> Map<K,V> |
orderedMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5) |
static <K,V> Map<K,V> |
orderedMap(Map<? extends K,? extends V> src,
boolean ignoreNullValues) |
static <K,V> Map<K,V> |
orderedMap(Object... keysAndValues) |
static <T> Queue<T> |
queue() |
static <T> BlockingQueue<T> |
queue(int maxSize) |
static <T> List<T> |
range(Iterable<T> items,
int from,
int to) |
static <T> List<T> |
synchronizedList(T... values) |
static <K,V> Map<K,V> |
synchronizedMap() |
static <T> Set<T> |
synchronizedSet(T... values) |
public static <T> Set<T> synchronizedSet(T... values)
public static <T> List<T> synchronizedList(T... values)
public static <T> Set<T> concurrentSet()
public static boolean isMap(Object obj)
public static boolean isList(Object obj)
public static boolean isSet(Object obj)
public static boolean isCollection(Object obj)
public static <T> void assign(Collection<T> destination, Collection<? extends T> source)
public static <T> void assign(Collection<? super T> destination, T[] source)
public static <K,V> V get(Map<K,V> map, K key)
public static <K,V> V get(Map<K,V> map, K key, V defaultValue)
public static <K,V> ConcurrentMap<K,V> concurrentMap()
public static <K,V> ConcurrentMap<K,V> concurrentMap(Map<? extends K,? extends V> src, boolean ignoreNullValues)
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key, V value)
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key1, V value1, K key2, V value2)
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key1, V value1, K key2, V value2, K key3, V value3)
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
public static <K,V> ConcurrentMap<K,V> concurrentMap(Object... keysAndValues)
public static <K,V> Map<K,V> orderedMap()
public static <K,V> Map<K,V> orderedMap(Map<? extends K,? extends V> src, boolean ignoreNullValues)
public static <K,V> Map<K,V> orderedMap(K key, V value)
public static <K,V> Map<K,V> orderedMap(K key1, V value1, K key2, V value2)
public static <K,V> Map<K,V> orderedMap(K key1, V value1, K key2, V value2, K key3, V value3)
public static <K,V> Map<K,V> orderedMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
public static <K,V> Map<K,V> orderedMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
public static <K,V> Map<K,V> synchronizedMap()
public static <T> Queue<T> queue()
public static <T> BlockingQueue<T> queue(int maxSize)
Copyright © 2014–2016 Nikolche Mihajlovski and contributors. All rights reserved.