V - the keyType of elements maintained by this Collectionpublic static class Int2ObjectMap.BuilderCache<V>
extends java.lang.Object
| Constructor and Description |
|---|
BuilderCache()
Default Constructor
|
BuilderCache(int initialSize)
Constructor providing a Minimum Capcity
|
| Modifier and Type | Method and Description |
|---|---|
Int2ObjectArrayMap<V> |
arrayMap()
Builds the Keys and Values into a Array Map
|
Int2ObjectAVLTreeMap<V> |
avlTreeMap()
Builds the Keys and Values into a AVL TreeMap
|
Int2ObjectAVLTreeMap<V> |
avlTreeMap(IntComparator comp)
Builds the Keys and Values into a AVL TreeMap
|
Int2ObjectConcurrentOpenHashMap<V> |
concurrentMap()
Builds the Keys and Values into a Concurrent Hash Map
|
Int2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(IntStrategy strategy)
Builds the Keys and Values into a Linked Custom Hash Map
|
Int2ObjectOpenCustomHashMap<V> |
customMap(IntStrategy strategy)
Builds the Keys and Values into a Custom Hash Map
|
ImmutableInt2ObjectOpenHashMap<V> |
immutable()
Builds the Keys and Values into a Immutable Hash Map
|
Int2ObjectLinkedOpenHashMap<V> |
linkedMap()
Builds the Keys and Values into a Linked Hash Map
|
Int2ObjectOpenHashMap<V> |
map()
Builds the Keys and Values into a Hash Map
|
Int2ObjectMap.BuilderCache<V> |
put(Int2ObjectMap.Entry<V> entry)
Helper function to add a Entry into the Map
|
Int2ObjectMap.BuilderCache<V> |
put(java.lang.Integer key,
V value)
Helper function to add a Entry into the Map
|
Int2ObjectMap.BuilderCache<V> |
put(int key,
V value)
Helper function to add a Entry into the Map
|
Int2ObjectMap.BuilderCache<V> |
putAll(Int2ObjectMap<V> map)
Helper function to add a Map to the Map
|
Int2ObjectMap.BuilderCache<V> |
putAll(java.util.Map<? extends java.lang.Integer,? extends V> map)
Helper function to add a Map to the Map
|
Int2ObjectMap.BuilderCache<V> |
putAll(ObjectIterable<Int2ObjectMap.Entry<V>> c)
Helper function to add a Collection of Entries to the Map
|
Int2ObjectRBTreeMap<V> |
rbTreeMap()
Builds the Keys and Values into a RedBlack TreeMap
|
Int2ObjectRBTreeMap<V> |
rbTreeMap(IntComparator comp)
Builds the Keys and Values into a RedBlack TreeMap
|
public BuilderCache()
public BuilderCache(int initialSize)
initialSize - the requested start capacitypublic Int2ObjectMap.BuilderCache<V> put(int key, V value)
key - the key that should be addedvalue - the value that should be addedpublic Int2ObjectMap.BuilderCache<V> put(java.lang.Integer key, V value)
key - the key that should be addedvalue - the value that should be addedpublic Int2ObjectMap.BuilderCache<V> put(Int2ObjectMap.Entry<V> entry)
entry - the Entry that should be addedpublic Int2ObjectMap.BuilderCache<V> putAll(Int2ObjectMap<V> map)
map - that should be addedpublic Int2ObjectMap.BuilderCache<V> putAll(java.util.Map<? extends java.lang.Integer,? extends V> map)
map - that should be addedpublic Int2ObjectMap.BuilderCache<V> putAll(ObjectIterable<Int2ObjectMap.Entry<V>> c)
c - that should be addedpublic Int2ObjectOpenHashMap<V> map()
public Int2ObjectLinkedOpenHashMap<V> linkedMap()
public ImmutableInt2ObjectOpenHashMap<V> immutable()
public Int2ObjectOpenCustomHashMap<V> customMap(IntStrategy strategy)
strategy - the that controls the keys and valuespublic Int2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(IntStrategy strategy)
strategy - the that controls the keys and valuespublic Int2ObjectConcurrentOpenHashMap<V> concurrentMap()
public Int2ObjectArrayMap<V> arrayMap()
public Int2ObjectRBTreeMap<V> rbTreeMap()
public Int2ObjectRBTreeMap<V> rbTreeMap(IntComparator comp)
comp - the Comparator that sorts the Treepublic Int2ObjectAVLTreeMap<V> avlTreeMap()
public Int2ObjectAVLTreeMap<V> avlTreeMap(IntComparator comp)
comp - the Comparator that sorts the Tree