public static class Short2IntMap.BuilderCache
extends java.lang.Object
| Constructor and Description |
|---|
BuilderCache()
Default Constructor
|
BuilderCache(int initialSize)
Constructor providing a Minimum Capcity
|
| Modifier and Type | Method and Description |
|---|---|
Short2IntArrayMap |
arrayMap()
Builds the Keys and Values into a Array Map
|
Short2IntAVLTreeMap |
avlTreeMap()
Builds the Keys and Values into a AVL TreeMap
|
Short2IntAVLTreeMap |
avlTreeMap(ShortComparator comp)
Builds the Keys and Values into a AVL TreeMap
|
Short2IntConcurrentOpenHashMap |
concurrentMap()
Builds the Keys and Values into a Concurrent Hash Map
|
Short2IntLinkedOpenCustomHashMap |
customLinkedMap(ShortStrategy strategy)
Builds the Keys and Values into a Linked Custom Hash Map
|
Short2IntOpenCustomHashMap |
customMap(ShortStrategy strategy)
Builds the Keys and Values into a Custom Hash Map
|
ImmutableShort2IntOpenHashMap |
immutable()
Builds the Keys and Values into a Immutable Hash Map
|
Short2IntLinkedOpenHashMap |
linkedMap()
Builds the Keys and Values into a Linked Hash Map
|
Short2IntOpenHashMap |
map()
Builds the Keys and Values into a Hash Map
|
Short2IntMap.BuilderCache |
put(Short2IntMap.Entry entry)
Helper function to add a Entry into the Map
|
Short2IntMap.BuilderCache |
put(short key,
int value)
Helper function to add a Entry into the Map
|
Short2IntMap.BuilderCache |
put(java.lang.Short key,
java.lang.Integer value)
Helper function to add a Entry into the Map
|
Short2IntMap.BuilderCache |
putAll(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
Helper function to add a Map to the Map
|
Short2IntMap.BuilderCache |
putAll(ObjectIterable<Short2IntMap.Entry> c)
Helper function to add a Collection of Entries to the Map
|
Short2IntMap.BuilderCache |
putAll(Short2IntMap map)
Helper function to add a Map to the Map
|
Short2IntRBTreeMap |
rbTreeMap()
Builds the Keys and Values into a RedBlack TreeMap
|
Short2IntRBTreeMap |
rbTreeMap(ShortComparator comp)
Builds the Keys and Values into a RedBlack TreeMap
|
public BuilderCache()
public BuilderCache(int initialSize)
initialSize - the requested start capacitypublic Short2IntMap.BuilderCache put(short key, int value)
key - the key that should be addedvalue - the value that should be addedpublic Short2IntMap.BuilderCache put(java.lang.Short key, java.lang.Integer value)
key - the key that should be addedvalue - the value that should be addedpublic Short2IntMap.BuilderCache put(Short2IntMap.Entry entry)
entry - the Entry that should be addedpublic Short2IntMap.BuilderCache putAll(Short2IntMap map)
map - that should be addedpublic Short2IntMap.BuilderCache putAll(java.util.Map<? extends java.lang.Short,? extends java.lang.Integer> map)
map - that should be addedpublic Short2IntMap.BuilderCache putAll(ObjectIterable<Short2IntMap.Entry> c)
c - that should be addedpublic Short2IntOpenHashMap map()
public Short2IntLinkedOpenHashMap linkedMap()
public ImmutableShort2IntOpenHashMap immutable()
public Short2IntOpenCustomHashMap customMap(ShortStrategy strategy)
strategy - the that controls the keys and valuespublic Short2IntLinkedOpenCustomHashMap customLinkedMap(ShortStrategy strategy)
strategy - the that controls the keys and valuespublic Short2IntConcurrentOpenHashMap concurrentMap()
public Short2IntArrayMap arrayMap()
public Short2IntRBTreeMap rbTreeMap()
public Short2IntRBTreeMap rbTreeMap(ShortComparator comp)
comp - the Comparator that sorts the Treepublic Short2IntAVLTreeMap avlTreeMap()
public Short2IntAVLTreeMap avlTreeMap(ShortComparator comp)
comp - the Comparator that sorts the Tree