public static final class Int2BooleanMap.MapBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Int2BooleanArrayMap |
arrayMap()
Helper function to unify code
|
Int2BooleanArrayMap |
arrayMap(int size)
Helper function to unify code
|
Int2BooleanArrayMap |
arrayMap(int[] keys,
boolean[] values)
Helper function to unify code
|
Int2BooleanArrayMap |
arrayMap(Int2BooleanMap map)
Helper function to unify code
|
Int2BooleanArrayMap |
arrayMap(java.lang.Integer[] keys,
java.lang.Boolean[] values)
Helper function to unify code
|
Int2BooleanArrayMap |
arrayMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
Helper function to unify code
|
Int2BooleanAVLTreeMap |
avlTreeMap()
Helper function to unify code
|
Int2BooleanAVLTreeMap |
avlTreeMap(int[] keys,
boolean[] values,
IntComparator comp)
Helper function to unify code
|
Int2BooleanAVLTreeMap |
avlTreeMap(Int2BooleanMap map,
IntComparator comp)
Helper function to unify code
|
Int2BooleanAVLTreeMap |
avlTreeMap(IntComparator comp)
Helper function to unify code
|
Int2BooleanAVLTreeMap |
avlTreeMap(java.lang.Integer[] keys,
java.lang.Boolean[] values,
IntComparator comp)
Helper function to unify code
|
Int2BooleanAVLTreeMap |
avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map,
IntComparator comp)
Helper function to unify code
|
Int2BooleanLinkedOpenCustomHashMap |
customLinkedMap(int[] keys,
boolean[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2BooleanLinkedOpenCustomHashMap |
customLinkedMap(Int2BooleanMap map,
IntStrategy strategy)
Helper function to unify code
|
Int2BooleanLinkedOpenCustomHashMap |
customLinkedMap(java.lang.Integer[] keys,
java.lang.Boolean[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2BooleanLinkedOpenCustomHashMap |
customLinkedMap(int size,
IntStrategy strategy)
Helper function to unify code
|
Int2BooleanLinkedOpenCustomHashMap |
customLinkedMap(IntStrategy strategy)
Helper function to unify code
|
Int2BooleanLinkedOpenCustomHashMap |
customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map,
IntStrategy strategy)
Helper function to unify code
|
Int2BooleanOpenCustomHashMap |
customMap(int[] keys,
boolean[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2BooleanOpenCustomHashMap |
customMap(Int2BooleanMap map,
IntStrategy strategy)
Helper function to unify code
|
Int2BooleanOpenCustomHashMap |
customMap(java.lang.Integer[] keys,
java.lang.Boolean[] values,
IntStrategy strategy)
Helper function to unify code
|
Int2BooleanOpenCustomHashMap |
customMap(int size,
IntStrategy strategy)
Helper function to unify code
|
Int2BooleanOpenCustomHashMap |
customMap(IntStrategy strategy)
Helper function to unify code
|
Int2BooleanOpenCustomHashMap |
customMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map,
IntStrategy strategy)
Helper function to unify code
|
ImmutableInt2BooleanOpenHashMap |
immutable(int[] keys,
boolean[] values)
Helper function to unify code
|
ImmutableInt2BooleanOpenHashMap |
immutable(Int2BooleanMap map)
Helper function to unify code
|
ImmutableInt2BooleanOpenHashMap |
immutable(java.lang.Integer[] keys,
java.lang.Boolean[] values)
Helper function to unify code
|
ImmutableInt2BooleanOpenHashMap |
immutable(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
Helper function to unify code
|
Int2BooleanLinkedOpenHashMap |
linkedMap()
Helper function to unify code
|
Int2BooleanLinkedOpenHashMap |
linkedMap(int size)
Helper function to unify code
|
Int2BooleanLinkedOpenHashMap |
linkedMap(int[] keys,
boolean[] values)
Helper function to unify code
|
Int2BooleanLinkedOpenHashMap |
linkedMap(Int2BooleanMap map)
Helper function to unify code
|
Int2BooleanLinkedOpenHashMap |
linkedMap(java.lang.Integer[] keys,
java.lang.Boolean[] values)
Helper function to unify code
|
ImmutableInt2BooleanOpenHashMap |
linkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
Helper function to unify code
|
Int2BooleanOpenHashMap |
map()
Helper function to unify code
|
Int2BooleanOpenHashMap |
map(int size)
Helper function to unify code
|
Int2BooleanOpenHashMap |
map(int[] keys,
boolean[] values)
Helper function to unify code
|
Int2BooleanOpenHashMap |
map(Int2BooleanMap map)
Helper function to unify code
|
Int2BooleanOpenHashMap |
map(java.lang.Integer[] keys,
java.lang.Boolean[] values)
Helper function to unify code
|
Int2BooleanOpenHashMap |
map(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
Helper function to unify code
|
Int2BooleanMap.BuilderCache |
put(int key,
boolean 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
|
Int2BooleanMap.BuilderCache |
put(java.lang.Integer key,
java.lang.Boolean 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
|
Int2BooleanRBTreeMap |
rbTreeMap()
Helper function to unify code
|
Int2BooleanRBTreeMap |
rbTreeMap(int[] keys,
boolean[] values,
IntComparator comp)
Helper function to unify code
|
Int2BooleanRBTreeMap |
rbTreeMap(Int2BooleanMap map,
IntComparator comp)
Helper function to unify code
|
Int2BooleanRBTreeMap |
rbTreeMap(IntComparator comp)
Helper function to unify code
|
Int2BooleanRBTreeMap |
rbTreeMap(java.lang.Integer[] keys,
java.lang.Boolean[] values,
IntComparator comp)
Helper function to unify code
|
Int2BooleanRBTreeMap |
rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map,
IntComparator comp)
Helper function to unify code
|
Int2BooleanMap.BuilderCache |
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
|
Int2BooleanMap.BuilderCache |
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 Int2BooleanMap.BuilderCache start()
public Int2BooleanMap.BuilderCache start(int size)
size - the expected minimum size of Elements in the Map, default is 16public Int2BooleanMap.BuilderCache put(int key, boolean value)
key - the key that should be addedvalue - the value that should be addedpublic Int2BooleanMap.BuilderCache put(java.lang.Integer key, java.lang.Boolean value)
key - the key that should be addedvalue - the value that should be addedpublic Int2BooleanOpenHashMap map()
public Int2BooleanOpenHashMap map(int size)
size - the minimum capacity of the Mappublic Int2BooleanOpenHashMap map(int[] keys, boolean[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Int2BooleanOpenHashMap map(java.lang.Integer[] keys, java.lang.Boolean[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Int2BooleanOpenHashMap map(Int2BooleanMap map)
map - that should be clonedpublic Int2BooleanOpenHashMap map(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
map - that should be clonedpublic Int2BooleanLinkedOpenHashMap linkedMap()
public Int2BooleanLinkedOpenHashMap linkedMap(int size)
size - the minimum capacity of the Mappublic Int2BooleanLinkedOpenHashMap linkedMap(int[] keys, boolean[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Int2BooleanLinkedOpenHashMap linkedMap(java.lang.Integer[] keys, java.lang.Boolean[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Int2BooleanLinkedOpenHashMap linkedMap(Int2BooleanMap map)
map - that should be clonedpublic ImmutableInt2BooleanOpenHashMap linkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
map - that should be clonedpublic ImmutableInt2BooleanOpenHashMap immutable(int[] keys, boolean[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic ImmutableInt2BooleanOpenHashMap immutable(java.lang.Integer[] keys, java.lang.Boolean[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic ImmutableInt2BooleanOpenHashMap immutable(Int2BooleanMap map)
map - that should be clonedpublic ImmutableInt2BooleanOpenHashMap immutable(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
map - that should be clonedpublic Int2BooleanOpenCustomHashMap customMap(IntStrategy strategy)
strategy - the Hash Controllerpublic Int2BooleanOpenCustomHashMap customMap(int size, IntStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Int2BooleanOpenCustomHashMap customMap(int[] keys, boolean[] values, IntStrategy strategy)
keys - 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 Int2BooleanOpenCustomHashMap customMap(java.lang.Integer[] keys, java.lang.Boolean[] values, IntStrategy strategy)
keys - 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 Int2BooleanOpenCustomHashMap customMap(Int2BooleanMap map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2BooleanOpenCustomHashMap customMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2BooleanLinkedOpenCustomHashMap customLinkedMap(IntStrategy strategy)
strategy - the Hash Controllerpublic Int2BooleanLinkedOpenCustomHashMap customLinkedMap(int size, IntStrategy strategy)
size - the minimum capacity of the Mapstrategy - the Hash Controllerpublic Int2BooleanLinkedOpenCustomHashMap customLinkedMap(int[] keys, boolean[] values, IntStrategy strategy)
keys - 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 Int2BooleanLinkedOpenCustomHashMap customLinkedMap(java.lang.Integer[] keys, java.lang.Boolean[] values, IntStrategy strategy)
keys - 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 Int2BooleanLinkedOpenCustomHashMap customLinkedMap(Int2BooleanMap map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2BooleanLinkedOpenCustomHashMap customLinkedMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map, IntStrategy strategy)
map - that should be clonedstrategy - the Hash Controllerpublic Int2BooleanArrayMap arrayMap()
public Int2BooleanArrayMap arrayMap(int size)
size - the minimum capacity of the Mappublic Int2BooleanArrayMap arrayMap(int[] keys, boolean[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Int2BooleanArrayMap arrayMap(java.lang.Integer[] keys, java.lang.Boolean[] values)
keys - the keys that should be insertedvalues - the values that should be insertedjava.lang.IllegalStateException - if the keys and values do not match in lengthpublic Int2BooleanArrayMap arrayMap(Int2BooleanMap map)
map - that should be clonedpublic Int2BooleanArrayMap arrayMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map)
map - that should be clonedpublic Int2BooleanRBTreeMap rbTreeMap()
public Int2BooleanRBTreeMap rbTreeMap(IntComparator comp)
comp - the Sorter of the TreeMappublic Int2BooleanRBTreeMap rbTreeMap(int[] keys, boolean[] values, IntComparator comp)
keys - 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 Int2BooleanRBTreeMap rbTreeMap(java.lang.Integer[] keys, java.lang.Boolean[] values, IntComparator comp)
keys - 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 Int2BooleanRBTreeMap rbTreeMap(Int2BooleanMap map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2BooleanRBTreeMap rbTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2BooleanAVLTreeMap avlTreeMap()
public Int2BooleanAVLTreeMap avlTreeMap(IntComparator comp)
comp - the Sorter of the TreeMappublic Int2BooleanAVLTreeMap avlTreeMap(int[] keys, boolean[] values, IntComparator comp)
keys - 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 Int2BooleanAVLTreeMap avlTreeMap(java.lang.Integer[] keys, java.lang.Boolean[] values, IntComparator comp)
keys - 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 Int2BooleanAVLTreeMap avlTreeMap(Int2BooleanMap map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMappublic Int2BooleanAVLTreeMap avlTreeMap(java.util.Map<? extends java.lang.Integer,? extends java.lang.Boolean> map, IntComparator comp)
map - that should be clonedcomp - the Sorter of the TreeMap