T - the type of elements maintained by this CollectionV - the type of elements maintained by this Collectionpublic static class Object2ObjectMap.BuilderCache<T,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 |
|---|---|
Object2ObjectArrayMap<T,V> |
arrayMap()
Builds the Keys and Values into a Array Map
|
Object2ObjectAVLTreeMap<T,V> |
avlTreeMap()
Builds the Keys and Values into a AVL TreeMap
|
Object2ObjectAVLTreeMap<T,V> |
avlTreeMap(java.util.Comparator<T> comp)
Builds the Keys and Values into a AVL TreeMap
|
Object2ObjectConcurrentOpenHashMap<T,V> |
concurrentMap()
Builds the Keys and Values into a Concurrent Hash Map
|
Object2ObjectLinkedOpenCustomHashMap<T,V> |
customLinkedMap(ObjectStrategy<T> strategy)
Builds the Keys and Values into a Linked Custom Hash Map
|
Object2ObjectOpenCustomHashMap<T,V> |
customMap(ObjectStrategy<T> strategy)
Builds the Keys and Values into a Custom Hash Map
|
ImmutableObject2ObjectOpenHashMap<T,V> |
immutable()
Builds the Keys and Values into a Immutable Hash Map
|
Object2ObjectLinkedOpenHashMap<T,V> |
linkedMap()
Builds the Keys and Values into a Linked Hash Map
|
Object2ObjectOpenHashMap<T,V> |
map()
Builds the Keys and Values into a Hash Map
|
Object2ObjectMap.BuilderCache<T,V> |
put(Object2ObjectMap.Entry<T,V> entry)
Helper function to add a Entry into the Map
|
Object2ObjectMap.BuilderCache<T,V> |
put(T key,
V value)
Helper function to add a Entry into the Map
|
Object2ObjectMap.BuilderCache<T,V> |
putAll(java.util.Map<? extends T,? extends V> map)
Helper function to add a Map to the Map
|
Object2ObjectMap.BuilderCache<T,V> |
putAll(Object2ObjectMap<T,V> map)
Helper function to add a Map to the Map
|
Object2ObjectMap.BuilderCache<T,V> |
putAll(ObjectIterable<Object2ObjectMap.Entry<T,V>> c)
Helper function to add a Collection of Entries to the Map
|
Object2ObjectRBTreeMap<T,V> |
rbTreeMap()
Builds the Keys and Values into a RedBlack TreeMap
|
Object2ObjectRBTreeMap<T,V> |
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 Object2ObjectMap.BuilderCache<T,V> put(T key, V value)
key - the key that should be addedvalue - the value that should be addedpublic Object2ObjectMap.BuilderCache<T,V> put(Object2ObjectMap.Entry<T,V> entry)
entry - the Entry that should be addedpublic Object2ObjectMap.BuilderCache<T,V> putAll(Object2ObjectMap<T,V> map)
map - that should be addedpublic Object2ObjectMap.BuilderCache<T,V> putAll(java.util.Map<? extends T,? extends V> map)
map - that should be addedpublic Object2ObjectMap.BuilderCache<T,V> putAll(ObjectIterable<Object2ObjectMap.Entry<T,V>> c)
c - that should be addedpublic Object2ObjectOpenHashMap<T,V> map()
public Object2ObjectLinkedOpenHashMap<T,V> linkedMap()
public ImmutableObject2ObjectOpenHashMap<T,V> immutable()
public Object2ObjectOpenCustomHashMap<T,V> customMap(ObjectStrategy<T> strategy)
strategy - the that controls the keys and valuespublic Object2ObjectLinkedOpenCustomHashMap<T,V> customLinkedMap(ObjectStrategy<T> strategy)
strategy - the that controls the keys and valuespublic Object2ObjectConcurrentOpenHashMap<T,V> concurrentMap()
public Object2ObjectArrayMap<T,V> arrayMap()
public Object2ObjectRBTreeMap<T,V> rbTreeMap()
public Object2ObjectRBTreeMap<T,V> rbTreeMap(java.util.Comparator<T> comp)
comp - the Comparator that sorts the Treepublic Object2ObjectAVLTreeMap<T,V> avlTreeMap()
public Object2ObjectAVLTreeMap<T,V> avlTreeMap(java.util.Comparator<T> comp)
comp - the Comparator that sorts the Tree