T - the type of elements maintained by this Collectionpublic static class Object2LongMap.BuilderCache<T>
extends java.lang.Object
| Constructor and Description |
|---|
BuilderCache()
Default Constructor
|
BuilderCache(int initialSize)
Constructor providing a Minimum Capcity
|
| Modifier and Type | Method and Description |
|---|---|
Object2LongArrayMap<T> |
arrayMap()
Builds the Keys and Values into a Array Map
|
Object2LongAVLTreeMap<T> |
avlTreeMap()
Builds the Keys and Values into a AVL TreeMap
|
Object2LongAVLTreeMap<T> |
avlTreeMap(java.util.Comparator<T> comp)
Builds the Keys and Values into a AVL TreeMap
|
Object2LongConcurrentOpenHashMap<T> |
concurrentMap()
Builds the Keys and Values into a Concurrent Hash Map
|
Object2LongLinkedOpenCustomHashMap<T> |
customLinkedMap(ObjectStrategy<T> strategy)
Builds the Keys and Values into a Linked Custom Hash Map
|
Object2LongOpenCustomHashMap<T> |
customMap(ObjectStrategy<T> strategy)
Builds the Keys and Values into a Custom Hash Map
|
ImmutableObject2LongOpenHashMap<T> |
immutable()
Builds the Keys and Values into a Immutable Hash Map
|
Object2LongLinkedOpenHashMap<T> |
linkedMap()
Builds the Keys and Values into a Linked Hash Map
|
Object2LongOpenHashMap<T> |
map()
Builds the Keys and Values into a Hash Map
|
Object2LongMap.BuilderCache<T> |
put(Object2LongMap.Entry<T> entry)
Helper function to add a Entry into the Map
|
Object2LongMap.BuilderCache<T> |
put(T key,
long value)
Helper function to add a Entry into the Map
|
Object2LongMap.BuilderCache<T> |
put(T key,
java.lang.Long value)
Helper function to add a Entry into the Map
|
Object2LongMap.BuilderCache<T> |
putAll(java.util.Map<? extends T,? extends java.lang.Long> map)
Helper function to add a Map to the Map
|
Object2LongMap.BuilderCache<T> |
putAll(Object2LongMap<T> map)
Helper function to add a Map to the Map
|
Object2LongMap.BuilderCache<T> |
putAll(ObjectIterable<Object2LongMap.Entry<T>> c)
Helper function to add a Collection of Entries to the Map
|
Object2LongRBTreeMap<T> |
rbTreeMap()
Builds the Keys and Values into a RedBlack TreeMap
|
Object2LongRBTreeMap<T> |
rbTreeMap(java.util.Comparator<T> comp)
Builds the Keys and Values into a RedBlack TreeMap
|
public BuilderCache()
public BuilderCache(int initialSize)
initialSize - the requested start capacitypublic Object2LongMap.BuilderCache<T> put(T key, long value)
key - the key that should be addedvalue - the value that should be addedpublic Object2LongMap.BuilderCache<T> put(T key, java.lang.Long value)
key - the key that should be addedvalue - the value that should be addedpublic Object2LongMap.BuilderCache<T> put(Object2LongMap.Entry<T> entry)
entry - the Entry that should be addedpublic Object2LongMap.BuilderCache<T> putAll(Object2LongMap<T> map)
map - that should be addedpublic Object2LongMap.BuilderCache<T> putAll(java.util.Map<? extends T,? extends java.lang.Long> map)
map - that should be addedpublic Object2LongMap.BuilderCache<T> putAll(ObjectIterable<Object2LongMap.Entry<T>> c)
c - that should be addedpublic Object2LongOpenHashMap<T> map()
public Object2LongLinkedOpenHashMap<T> linkedMap()
public ImmutableObject2LongOpenHashMap<T> immutable()
public Object2LongOpenCustomHashMap<T> customMap(ObjectStrategy<T> strategy)
strategy - the that controls the keys and valuespublic Object2LongLinkedOpenCustomHashMap<T> customLinkedMap(ObjectStrategy<T> strategy)
strategy - the that controls the keys and valuespublic Object2LongConcurrentOpenHashMap<T> concurrentMap()
public Object2LongArrayMap<T> arrayMap()
public Object2LongRBTreeMap<T> rbTreeMap()
public Object2LongRBTreeMap<T> rbTreeMap(java.util.Comparator<T> comp)
comp - the Comparator that sorts the Treepublic Object2LongAVLTreeMap<T> avlTreeMap()
public Object2LongAVLTreeMap<T> avlTreeMap(java.util.Comparator<T> comp)
comp - the Comparator that sorts the Tree