public static final class Int2ObjectMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<V> Int2ObjectArrayMap<V> |
arrayMap()
Helper function to unify code
|
<V> Int2ObjectArrayMap<V> |
arrayMap(int size)
Helper function to unify code
|
<V> Int2ObjectArrayMap<V> |
arrayMap(int[] keys,
V[] values)
Helper function to unify code
|
<V> Int2ObjectArrayMap<V> |
arrayMap(Int2ObjectMap<V> map)
Helper function to unify code
|
<V> Int2ObjectArrayMap<V> |
arrayMap(java.lang.Integer[] keys,
V[] values)
Helper function to unify code
|
<V> Int2ObjectArrayMap<V> |
arrayMap(java.util.Map<? extends java.lang.Integer,? extends V> map)
Helper function to unify code
|
<V> Int2ObjectAVLTreeMap<V> |
avlTreeMap()
Helper function to unify code
|
<V> Int2ObjectAVLTreeMap<V> |
avlTreeMap(int[] keys,
V[] values,
IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectAVLTreeMap<V> |
avlTreeMap(Int2ObjectMap<V> map,
IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectAVLTreeMap<V> |
avlTreeMap(IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectAVLTreeMap<V> |
avlTreeMap(java.lang.Integer[] keys,
V[] values,
IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectAVLTreeMap<V> |
avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends V> map,
IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(int[] keys,
V[] values,
IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(Int2ObjectMap<V> map,
IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(java.lang.Integer[] keys,
V[] values,
IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(int size,
IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenCustomHashMap<V> |
customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends V> map,
IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectOpenCustomHashMap<V> |
customMap(int[] keys,
V[] values,
IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectOpenCustomHashMap<V> |
customMap(Int2ObjectMap<V> map,
IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectOpenCustomHashMap<V> |
customMap(java.lang.Integer[] keys,
V[] values,
IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectOpenCustomHashMap<V> |
customMap(int size,
IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectOpenCustomHashMap<V> |
customMap(IntStrategy strategy)
Helper function to unify code
|
<V> Int2ObjectOpenCustomHashMap<V> |
customMap(java.util.Map<? extends java.lang.Integer,? extends V> map,
IntStrategy strategy)
Helper function to unify code
|
<V> ImmutableInt2ObjectOpenHashMap<V> |
immutable(int[] keys,
V[] values)
Helper function to unify code
|
<V> ImmutableInt2ObjectOpenHashMap<V> |
immutable(Int2ObjectMap<V> map)
Helper function to unify code
|
<V> ImmutableInt2ObjectOpenHashMap<V> |
immutable(java.lang.Integer[] keys,
V[] values)
Helper function to unify code
|
<V> ImmutableInt2ObjectOpenHashMap<V> |
immutable(java.util.Map<? extends java.lang.Integer,? extends V> map)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenHashMap<V> |
linkedMap()
Helper function to unify code
|
<V> Int2ObjectLinkedOpenHashMap<V> |
linkedMap(int size)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenHashMap<V> |
linkedMap(int[] keys,
V[] values)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenHashMap<V> |
linkedMap(Int2ObjectMap<V> map)
Helper function to unify code
|
<V> Int2ObjectLinkedOpenHashMap<V> |
linkedMap(java.lang.Integer[] keys,
V[] values)
Helper function to unify code
|
<V> ImmutableInt2ObjectOpenHashMap<V> |
linkedMap(java.util.Map<? extends java.lang.Integer,? extends V> map)
Helper function to unify code
|
<V> Int2ObjectOpenHashMap<V> |
map()
Helper function to unify code
|
<V> Int2ObjectOpenHashMap<V> |
map(int size)
Helper function to unify code
|
<V> Int2ObjectOpenHashMap<V> |
map(int[] keys,
V[] values)
Helper function to unify code
|
<V> Int2ObjectOpenHashMap<V> |
map(Int2ObjectMap<V> map)
Helper function to unify code
|
<V> Int2ObjectOpenHashMap<V> |
map(java.lang.Integer[] keys,
V[] values)
Helper function to unify code
|
<V> Int2ObjectOpenHashMap<V> |
map(java.util.Map<? extends java.lang.Integer,? extends V> map)
Helper function to unify code
|
<V> Int2ObjectMap.BuilderCache<V> |
put(java.lang.Integer key,
V value)
Starts a Map builder and puts in the Key and Value into it
Keys and Values are stored as Array and then inserted using the putAllMethod when the mapType is choosen
|
<V> Int2ObjectMap.BuilderCache<V> |
put(int key,
V value)
Starts a Map builder and puts in the Key and Value into it
Keys and Values are stored as Array and then inserted using the putAllMethod when the mapType is choosen
|
<V> Int2ObjectRBTreeMap<V> |
rbTreeMap()
Helper function to unify code
|
<V> Int2ObjectRBTreeMap<V> |
rbTreeMap(int[] keys,
V[] values,
IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectRBTreeMap<V> |
rbTreeMap(Int2ObjectMap<V> map,
IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectRBTreeMap<V> |
rbTreeMap(IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectRBTreeMap<V> |
rbTreeMap(java.lang.Integer[] keys,
V[] values,
IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectRBTreeMap<V> |
rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends V> map,
IntComparator comp)
Helper function to unify code
|
<V> Int2ObjectMap.BuilderCache<V> |
start()
Starts a Map Builder that allows you to create maps as Constants a lot easier
Keys and Values are stored as Array and then inserted using the putAllMethod when the mapType is choosen
|
<V> Int2ObjectMap.BuilderCache<V> |
start(int size)
Starts a Map Builder that allows you to create maps as Constants a lot easier
Keys and Values are stored as Array and then inserted using the putAllMethod when the mapType is choosen
|
public <V> Int2ObjectMap.BuilderCache<V> start()
V - the type of elements maintained by this Collectionpublic <V> Int2ObjectMap.BuilderCache<V> start(int size)
V - the type of elements maintained by this Collectionsize - the expected minimum size of Elements in the Map, default is 16public <V> Int2ObjectMap.BuilderCache<V> put(int key, V value)
V - the type of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <V> Int2ObjectMap.BuilderCache<V> put(java.lang.Integer key, V value)
V - the type of elements maintained by this Collectionkey - the key that should be addedvalue - the value that should be addedpublic <V> Int2ObjectOpenHashMap<V> map()
V - the type of elements maintained by this Collectionpublic <V> Int2ObjectOpenHashMap<V> map(int size)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Int2ObjectOpenHashMap<V> map(int[] keys, V[] values)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectOpenHashMap<V> map(java.lang.Integer[] keys, V[] values)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectOpenHashMap<V> map(Int2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Int2ObjectOpenHashMap<V> map(java.util.Map<? extends java.lang.Integer,? extends V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Int2ObjectLinkedOpenHashMap<V> linkedMap()
V - the type of elements maintained by this Collectionpublic <V> Int2ObjectLinkedOpenHashMap<V> linkedMap(int size)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Int2ObjectLinkedOpenHashMap<V> linkedMap(int[] keys, V[] values)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectLinkedOpenHashMap<V> linkedMap(java.lang.Integer[] keys, V[] values)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectLinkedOpenHashMap<V> linkedMap(Int2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableInt2ObjectOpenHashMap<V> linkedMap(java.util.Map<? extends java.lang.Integer,? extends V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableInt2ObjectOpenHashMap<V> immutable(int[] keys, V[] values)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> ImmutableInt2ObjectOpenHashMap<V> immutable(java.lang.Integer[] keys, V[] values)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> ImmutableInt2ObjectOpenHashMap<V> immutable(Int2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> ImmutableInt2ObjectOpenHashMap<V> immutable(java.util.Map<? extends java.lang.Integer,? extends V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Int2ObjectOpenCustomHashMap<V> customMap(IntStrategy strategy)
V - the type of elements maintained by this Collectionstrategy - the Hash Controllerpublic <V> Int2ObjectOpenCustomHashMap<V> customMap(int size, IntStrategy strategy)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <V> Int2ObjectOpenCustomHashMap<V> customMap(int[] keys, V[] values, IntStrategy strategy)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedstrategy - the Hash Controllerjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectOpenCustomHashMap<V> customMap(java.lang.Integer[] keys, V[] values, IntStrategy strategy)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedstrategy - the Hash Controllerjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectOpenCustomHashMap<V> customMap(Int2ObjectMap<V> map, IntStrategy strategy)
V - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Int2ObjectOpenCustomHashMap<V> customMap(java.util.Map<? extends java.lang.Integer,? extends V> map, IntStrategy strategy)
V - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Int2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(IntStrategy strategy)
V - the type of elements maintained by this Collectionstrategy - the Hash Controllerpublic <V> Int2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(int size, IntStrategy strategy)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mapstrategy - the Hash Controllerpublic <V> Int2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(int[] keys, V[] values, IntStrategy strategy)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedstrategy - the Hash Controllerjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(java.lang.Integer[] keys, V[] values, IntStrategy strategy)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedstrategy - the Hash Controllerjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(Int2ObjectMap<V> map, IntStrategy strategy)
V - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Int2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends V> map, IntStrategy strategy)
V - the type of elements maintained by this Collectionmap - that should be clonedstrategy - the Hash Controllerpublic <V> Int2ObjectArrayMap<V> arrayMap()
V - the type of elements maintained by this Collectionpublic <V> Int2ObjectArrayMap<V> arrayMap(int size)
V - the type of elements maintained by this Collectionsize - the minimum capacity of the Mappublic <V> Int2ObjectArrayMap<V> arrayMap(int[] keys, V[] values)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectArrayMap<V> arrayMap(java.lang.Integer[] keys, V[] values)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectArrayMap<V> arrayMap(Int2ObjectMap<V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Int2ObjectArrayMap<V> arrayMap(java.util.Map<? extends java.lang.Integer,? extends V> map)
V - the type of elements maintained by this Collectionmap - that should be clonedpublic <V> Int2ObjectRBTreeMap<V> rbTreeMap()
V - the type of elements maintained by this Collectionpublic <V> Int2ObjectRBTreeMap<V> rbTreeMap(IntComparator comp)
V - the type of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <V> Int2ObjectRBTreeMap<V> rbTreeMap(int[] keys, V[] values, IntComparator comp)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedcomp - the Sorter of the TreeMapjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectRBTreeMap<V> rbTreeMap(java.lang.Integer[] keys, V[] values, IntComparator comp)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedcomp - the Sorter of the TreeMapjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectRBTreeMap<V> rbTreeMap(Int2ObjectMap<V> map, IntComparator comp)
V - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Int2ObjectRBTreeMap<V> rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends V> map, IntComparator comp)
V - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Int2ObjectAVLTreeMap<V> avlTreeMap()
V - the type of elements maintained by this Collectionpublic <V> Int2ObjectAVLTreeMap<V> avlTreeMap(IntComparator comp)
V - the type of elements maintained by this Collectioncomp - the Sorter of the TreeMappublic <V> Int2ObjectAVLTreeMap<V> avlTreeMap(int[] keys, V[] values, IntComparator comp)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedcomp - the Sorter of the TreeMapjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectAVLTreeMap<V> avlTreeMap(java.lang.Integer[] keys, V[] values, IntComparator comp)
V - the type of elements maintained by this Collectionkeys - the keys that should be insertedvalues - the values that should be insertedcomp - the Sorter of the TreeMapjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic <V> Int2ObjectAVLTreeMap<V> avlTreeMap(Int2ObjectMap<V> map, IntComparator comp)
V - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMappublic <V> Int2ObjectAVLTreeMap<V> avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends V> map, IntComparator comp)
V - the type of elements maintained by this Collectionmap - that should be clonedcomp - the Sorter of the TreeMap