T - the type of elements maintained by this Collectionpublic static class Object2IntMap.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 |
|---|---|
Object2IntArrayMap<T> |
arrayMap()
Builds the Keys and Values into a Array Map
|
Object2IntAVLTreeMap<T> |
avlTreeMap()
Builds the Keys and Values into a AVL TreeMap
|
Object2IntAVLTreeMap<T> |
avlTreeMap(java.util.Comparator<T> comp)
Builds the Keys and Values into a AVL TreeMap
|
Object2IntConcurrentOpenHashMap<T> |
concurrentMap()
Builds the Keys and Values into a Concurrent Hash Map
|
Object2IntLinkedOpenCustomHashMap<T> |
customLinkedMap(ObjectStrategy<T> strategy)
Builds the Keys and Values into a Linked Custom Hash Map
|
Object2IntOpenCustomHashMap<T> |
customMap(ObjectStrategy<T> strategy)
Builds the Keys and Values into a Custom Hash Map
|
ImmutableObject2IntOpenHashMap<T> |
immutable()
Builds the Keys and Values into a Immutable Hash Map
|
Object2IntLinkedOpenHashMap<T> |
linkedMap()
Builds the Keys and Values into a Linked Hash Map
|
Object2IntOpenHashMap<T> |
map()
Builds the Keys and Values into a Hash Map
|
Object2IntMap.BuilderCache<T> |
put(Object2IntMap.Entry<T> entry)
Helper function to add a Entry into the Map
|
Object2IntMap.BuilderCache<T> |
put(T key,
int value)
Helper function to add a Entry into the Map
|
Object2IntMap.BuilderCache<T> |
put(T key,
java.lang.Integer value)
Helper function to add a Entry into the Map
|
Object2IntMap.BuilderCache<T> |
putAll(java.util.Map<? extends T,? extends java.lang.Integer> map)
Helper function to add a Map to the Map
|
Object2IntMap.BuilderCache<T> |
putAll(Object2IntMap<T> map)
Helper function to add a Map to the Map
|
Object2IntMap.BuilderCache<T> |
putAll(ObjectIterable<Object2IntMap.Entry<T>> c)
Helper function to add a Collection of Entries to the Map
|
Object2IntRBTreeMap<T> |
rbTreeMap()
Builds the Keys and Values into a RedBlack TreeMap
|
Object2IntRBTreeMap<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 Object2IntMap.BuilderCache<T> put(T key, int value)
key - the key that should be addedvalue - the value that should be addedpublic Object2IntMap.BuilderCache<T> put(T key, java.lang.Integer value)
key - the key that should be addedvalue - the value that should be addedpublic Object2IntMap.BuilderCache<T> put(Object2IntMap.Entry<T> entry)
entry - the Entry that should be addedpublic Object2IntMap.BuilderCache<T> putAll(Object2IntMap<T> map)
map - that should be addedpublic Object2IntMap.BuilderCache<T> putAll(java.util.Map<? extends T,? extends java.lang.Integer> map)
map - that should be addedpublic Object2IntMap.BuilderCache<T> putAll(ObjectIterable<Object2IntMap.Entry<T>> c)
c - that should be addedpublic Object2IntOpenHashMap<T> map()
public Object2IntLinkedOpenHashMap<T> linkedMap()
public ImmutableObject2IntOpenHashMap<T> immutable()
public Object2IntOpenCustomHashMap<T> customMap(ObjectStrategy<T> strategy)
strategy - the that controls the keys and valuespublic Object2IntLinkedOpenCustomHashMap<T> customLinkedMap(ObjectStrategy<T> strategy)
strategy - the that controls the keys and valuespublic Object2IntConcurrentOpenHashMap<T> concurrentMap()
public Object2IntArrayMap<T> arrayMap()
public Object2IntRBTreeMap<T> rbTreeMap()
public Object2IntRBTreeMap<T> rbTreeMap(java.util.Comparator<T> comp)
comp - the Comparator that sorts the Treepublic Object2IntAVLTreeMap<T> avlTreeMap()
public Object2IntAVLTreeMap<T> avlTreeMap(java.util.Comparator<T> comp)
comp - the Comparator that sorts the Tree