V - the keyType of elements maintained by this Collectionpublic static class Long2ObjectMap.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 |
|---|---|
Long2ObjectArrayMap<V> |
arrayMap()
Builds the Keys and Values into a Array Map
|
Long2ObjectAVLTreeMap<V> |
avlTreeMap()
Builds the Keys and Values into a AVL TreeMap
|
Long2ObjectAVLTreeMap<V> |
avlTreeMap(LongComparator comp)
Builds the Keys and Values into a AVL TreeMap
|
Long2ObjectConcurrentOpenHashMap<V> |
concurrentMap()
Builds the Keys and Values into a Concurrent Hash Map
|
Long2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(LongStrategy strategy)
Builds the Keys and Values into a Linked Custom Hash Map
|
Long2ObjectOpenCustomHashMap<V> |
customMap(LongStrategy strategy)
Builds the Keys and Values into a Custom Hash Map
|
ImmutableLong2ObjectOpenHashMap<V> |
immutable()
Builds the Keys and Values into a Immutable Hash Map
|
Long2ObjectLinkedOpenHashMap<V> |
linkedMap()
Builds the Keys and Values into a Linked Hash Map
|
Long2ObjectOpenHashMap<V> |
map()
Builds the Keys and Values into a Hash Map
|
Long2ObjectMap.BuilderCache<V> |
put(Long2ObjectMap.Entry<V> entry)
Helper function to add a Entry into the Map
|
Long2ObjectMap.BuilderCache<V> |
put(long key,
V value)
Helper function to add a Entry into the Map
|
Long2ObjectMap.BuilderCache<V> |
put(java.lang.Long key,
V value)
Helper function to add a Entry into the Map
|
Long2ObjectMap.BuilderCache<V> |
putAll(Long2ObjectMap<V> map)
Helper function to add a Map to the Map
|
Long2ObjectMap.BuilderCache<V> |
putAll(java.util.Map<? extends java.lang.Long,? extends V> map)
Helper function to add a Map to the Map
|
Long2ObjectMap.BuilderCache<V> |
putAll(ObjectIterable<Long2ObjectMap.Entry<V>> c)
Helper function to add a Collection of Entries to the Map
|
Long2ObjectRBTreeMap<V> |
rbTreeMap()
Builds the Keys and Values into a RedBlack TreeMap
|
Long2ObjectRBTreeMap<V> |
rbTreeMap(LongComparator comp)
Builds the Keys and Values into a RedBlack TreeMap
|
public BuilderCache()
public BuilderCache(int initialSize)
initialSize - the requested start capacitypublic Long2ObjectMap.BuilderCache<V> put(long key, V value)
key - the key that should be addedvalue - the value that should be addedpublic Long2ObjectMap.BuilderCache<V> put(java.lang.Long key, V value)
key - the key that should be addedvalue - the value that should be addedpublic Long2ObjectMap.BuilderCache<V> put(Long2ObjectMap.Entry<V> entry)
entry - the Entry that should be addedpublic Long2ObjectMap.BuilderCache<V> putAll(Long2ObjectMap<V> map)
map - that should be addedpublic Long2ObjectMap.BuilderCache<V> putAll(java.util.Map<? extends java.lang.Long,? extends V> map)
map - that should be addedpublic Long2ObjectMap.BuilderCache<V> putAll(ObjectIterable<Long2ObjectMap.Entry<V>> c)
c - that should be addedpublic Long2ObjectOpenHashMap<V> map()
public Long2ObjectLinkedOpenHashMap<V> linkedMap()
public ImmutableLong2ObjectOpenHashMap<V> immutable()
public Long2ObjectOpenCustomHashMap<V> customMap(LongStrategy strategy)
strategy - the that controls the keys and valuespublic Long2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(LongStrategy strategy)
strategy - the that controls the keys and valuespublic Long2ObjectConcurrentOpenHashMap<V> concurrentMap()
public Long2ObjectArrayMap<V> arrayMap()
public Long2ObjectRBTreeMap<V> rbTreeMap()
public Long2ObjectRBTreeMap<V> rbTreeMap(LongComparator comp)
comp - the Comparator that sorts the Treepublic Long2ObjectAVLTreeMap<V> avlTreeMap()
public Long2ObjectAVLTreeMap<V> avlTreeMap(LongComparator comp)
comp - the Comparator that sorts the Tree