public static class Long2ShortMap.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 |
|---|---|
Long2ShortArrayMap |
arrayMap()
Builds the Keys and Values into a Array Map
|
Long2ShortAVLTreeMap |
avlTreeMap()
Builds the Keys and Values into a AVL TreeMap
|
Long2ShortAVLTreeMap |
avlTreeMap(LongComparator comp)
Builds the Keys and Values into a AVL TreeMap
|
Long2ShortConcurrentOpenHashMap |
concurrentMap()
Builds the Keys and Values into a Concurrent Hash Map
|
Long2ShortLinkedOpenCustomHashMap |
customLinkedMap(LongStrategy strategy)
Builds the Keys and Values into a Linked Custom Hash Map
|
Long2ShortOpenCustomHashMap |
customMap(LongStrategy strategy)
Builds the Keys and Values into a Custom Hash Map
|
ImmutableLong2ShortOpenHashMap |
immutable()
Builds the Keys and Values into a Immutable Hash Map
|
Long2ShortLinkedOpenHashMap |
linkedMap()
Builds the Keys and Values into a Linked Hash Map
|
Long2ShortOpenHashMap |
map()
Builds the Keys and Values into a Hash Map
|
Long2ShortMap.BuilderCache |
put(Long2ShortMap.Entry entry)
Helper function to add a Entry into the Map
|
Long2ShortMap.BuilderCache |
put(long key,
short value)
Helper function to add a Entry into the Map
|
Long2ShortMap.BuilderCache |
put(java.lang.Long key,
java.lang.Short value)
Helper function to add a Entry into the Map
|
Long2ShortMap.BuilderCache |
putAll(Long2ShortMap map)
Helper function to add a Map to the Map
|
Long2ShortMap.BuilderCache |
putAll(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
Helper function to add a Map to the Map
|
Long2ShortMap.BuilderCache |
putAll(ObjectIterable<Long2ShortMap.Entry> c)
Helper function to add a Collection of Entries to the Map
|
Long2ShortRBTreeMap |
rbTreeMap()
Builds the Keys and Values into a RedBlack TreeMap
|
Long2ShortRBTreeMap |
rbTreeMap(LongComparator comp)
Builds the Keys and Values into a RedBlack TreeMap
|
public BuilderCache()
public BuilderCache(int initialSize)
initialSize - the requested start capacitypublic Long2ShortMap.BuilderCache put(long key, short value)
key - the key that should be addedvalue - the value that should be addedpublic Long2ShortMap.BuilderCache put(java.lang.Long key, java.lang.Short value)
key - the key that should be addedvalue - the value that should be addedpublic Long2ShortMap.BuilderCache put(Long2ShortMap.Entry entry)
entry - the Entry that should be addedpublic Long2ShortMap.BuilderCache putAll(Long2ShortMap map)
map - that should be addedpublic Long2ShortMap.BuilderCache putAll(java.util.Map<? extends java.lang.Long,? extends java.lang.Short> map)
map - that should be addedpublic Long2ShortMap.BuilderCache putAll(ObjectIterable<Long2ShortMap.Entry> c)
c - that should be addedpublic Long2ShortOpenHashMap map()
public Long2ShortLinkedOpenHashMap linkedMap()
public ImmutableLong2ShortOpenHashMap immutable()
public Long2ShortOpenCustomHashMap customMap(LongStrategy strategy)
strategy - the that controls the keys and valuespublic Long2ShortLinkedOpenCustomHashMap customLinkedMap(LongStrategy strategy)
strategy - the that controls the keys and valuespublic Long2ShortConcurrentOpenHashMap concurrentMap()
public Long2ShortArrayMap arrayMap()
public Long2ShortRBTreeMap rbTreeMap()
public Long2ShortRBTreeMap rbTreeMap(LongComparator comp)
comp - the Comparator that sorts the Treepublic Long2ShortAVLTreeMap avlTreeMap()
public Long2ShortAVLTreeMap avlTreeMap(LongComparator comp)
comp - the Comparator that sorts the Tree