public static class Int2IntMap.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 |
|---|---|
Int2IntArrayMap |
arrayMap()
Builds the Keys and Values into a Array Map
|
Int2IntAVLTreeMap |
avlTreeMap()
Builds the Keys and Values into a AVL TreeMap
|
Int2IntAVLTreeMap |
avlTreeMap(IntComparator comp)
Builds the Keys and Values into a AVL TreeMap
|
Int2IntConcurrentOpenHashMap |
concurrentMap()
Builds the Keys and Values into a Concurrent Hash Map
|
Int2IntLinkedOpenCustomHashMap |
customLinkedMap(IntStrategy strategy)
Builds the Keys and Values into a Linked Custom Hash Map
|
Int2IntOpenCustomHashMap |
customMap(IntStrategy strategy)
Builds the Keys and Values into a Custom Hash Map
|
ImmutableInt2IntOpenHashMap |
immutable()
Builds the Keys and Values into a Immutable Hash Map
|
Int2IntLinkedOpenHashMap |
linkedMap()
Builds the Keys and Values into a Linked Hash Map
|
Int2IntOpenHashMap |
map()
Builds the Keys and Values into a Hash Map
|
Int2IntMap.BuilderCache |
put(Int2IntMap.Entry entry)
Helper function to add a Entry into the Map
|
Int2IntMap.BuilderCache |
put(java.lang.Integer key,
java.lang.Integer value)
Helper function to add a Entry into the Map
|
Int2IntMap.BuilderCache |
put(int key,
int value)
Helper function to add a Entry into the Map
|
Int2IntMap.BuilderCache |
putAll(Int2IntMap map)
Helper function to add a Map to the Map
|
Int2IntMap.BuilderCache |
putAll(java.util.Map<? extends java.lang.Integer,? extends java.lang.Integer> map)
Helper function to add a Map to the Map
|
Int2IntMap.BuilderCache |
putAll(ObjectIterable<Int2IntMap.Entry> c)
Helper function to add a Collection of Entries to the Map
|
Int2IntRBTreeMap |
rbTreeMap()
Builds the Keys and Values into a RedBlack TreeMap
|
Int2IntRBTreeMap |
rbTreeMap(IntComparator comp)
Builds the Keys and Values into a RedBlack TreeMap
|
public BuilderCache()
public BuilderCache(int initialSize)
initialSize - the requested start capacitypublic Int2IntMap.BuilderCache put(int key, int value)
key - the key that should be addedvalue - the value that should be addedpublic Int2IntMap.BuilderCache put(java.lang.Integer key, java.lang.Integer value)
key - the key that should be addedvalue - the value that should be addedpublic Int2IntMap.BuilderCache put(Int2IntMap.Entry entry)
entry - the Entry that should be addedpublic Int2IntMap.BuilderCache putAll(Int2IntMap map)
map - that should be addedpublic Int2IntMap.BuilderCache putAll(java.util.Map<? extends java.lang.Integer,? extends java.lang.Integer> map)
map - that should be addedpublic Int2IntMap.BuilderCache putAll(ObjectIterable<Int2IntMap.Entry> c)
c - that should be addedpublic Int2IntOpenHashMap map()
public Int2IntLinkedOpenHashMap linkedMap()
public ImmutableInt2IntOpenHashMap immutable()
public Int2IntOpenCustomHashMap customMap(IntStrategy strategy)
strategy - the that controls the keys and valuespublic Int2IntLinkedOpenCustomHashMap customLinkedMap(IntStrategy strategy)
strategy - the that controls the keys and valuespublic Int2IntConcurrentOpenHashMap concurrentMap()
public Int2IntArrayMap arrayMap()
public Int2IntRBTreeMap rbTreeMap()
public Int2IntRBTreeMap rbTreeMap(IntComparator comp)
comp - the Comparator that sorts the Treepublic Int2IntAVLTreeMap avlTreeMap()
public Int2IntAVLTreeMap avlTreeMap(IntComparator comp)
comp - the Comparator that sorts the Tree