Class Collections2
java.lang.Object
net.thevpc.common.collections.Collections2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> ListValueMap <K, V> static <K,V> AutoValueMap <K, V> autoValueHashMap(Function<K, V> autoValueSupplier) static <K,V> AutoValueMap <K, V> autoValueLinkedHashMap(Function<K, V> autoValueSupplier) static <K,V> AutoValueMap <K, V> autoValueMap(Function<K, V> autoValueSupplier) static <K,V> AutoValueMap <K, V> autoValueTreeMap(Function<K, V> autoValueSupplier) static EvictingCharQueueevictingCharQueue(int size) static EvictingIntQueueevictingIntQueue(int size) static <T> EvictingQueue<T> evictingQueue(int size) static <K,V> SetValueMap <K, V> static <K,V> KeyValueList <K, V> keyValueList(Function<V, K> keyResolver) a list of key-value pairs.static <K,V> ListValueMap <K, V> static <K,V> SetValueMap <K, V> static <K,V> KeyValueList <K, V> unmodifiableKeyValueList(KeyValueList<K, V> other)
-
Constructor Details
-
Collections2
public Collections2()
-
-
Method Details
-
listValueMap
-
arrayListValueHashMap
-
setValueMap
-
hashSetValueHashMap
-
keyValueList
a list of key-value pairs. User adds values and the keys automatically resolved bykeyResolver- Type Parameters:
K- Key typeV- value type- Parameters:
keyResolver- function to resolve key from value- Returns:
- default implementation of KeyValueList<K, V>
-
unmodifiableKeyValueList
-
autoValueMap
-
autoValueHashMap
-
autoValueLinkedHashMap
-
autoValueTreeMap
-
evictingCharQueue
-
evictingIntQueue
-
evictingQueue
-