Klasse Int2BooleanMap.MapBuilder

java.lang.Object
speiger.src.collections.ints.maps.interfaces.Int2BooleanMap.MapBuilder
Umschließende Schnittstelle:
Int2BooleanMap

public static final class Int2BooleanMap.MapBuilder extends Object
Helper class that reduces the method spam of the Map Class.
  • Konstruktordetails

    • MapBuilder

      public MapBuilder()
  • Methodendetails

    • 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
      Gibt zurück:
      a MapBuilder
    • start

      public 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
      Parameter:
      size - the expected minimum size of Elements in the Map, default is 16
      Gibt zurück:
      a MapBuilder
    • put

      public 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
      Parameter:
      key - the key that should be added
      value - the value that should be added
      Gibt zurück:
      a MapBuilder with the key and value stored in it.
    • put

      public Int2BooleanMap.BuilderCache put(Integer 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
      Parameter:
      key - the key that should be added
      value - the value that should be added
      Gibt zurück:
      a MapBuilder with the key and value stored in it.
    • map

      public Int2BooleanOpenHashMap map()
      Helper function to unify code
      Gibt zurück:
      a OpenHashMap
    • map

      public Int2BooleanOpenHashMap map(int size)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      Gibt zurück:
      a OpenHashMap with a mimimum capacity
    • map

      public Int2BooleanOpenHashMap map(int[] keys, boolean[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a OpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
    • map

      public Int2BooleanOpenHashMap map(Integer[] keys, Boolean[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a OpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      Note:
      the keys and values will be unboxed
    • map

      Helper function to unify code
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a OpenHashMap thats copies the contents of the provided map
    • map

      public Int2BooleanOpenHashMap map(Map<? extends Integer,? extends Boolean> map)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a OpenHashMap thats copies the contents of the provided map
      Note:
      the map will be unboxed
    • linkedMap

      public Int2BooleanLinkedOpenHashMap linkedMap()
      Helper function to unify code
      Gibt zurück:
      a LinkedOpenHashMap
    • linkedMap

      public Int2BooleanLinkedOpenHashMap linkedMap(int size)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      Gibt zurück:
      a LinkedOpenHashMap with a mimimum capacity
    • linkedMap

      public Int2BooleanLinkedOpenHashMap linkedMap(int[] keys, boolean[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a LinkedOpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
    • linkedMap

      public Int2BooleanLinkedOpenHashMap linkedMap(Integer[] keys, Boolean[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a LinkedOpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      Note:
      the keys and values will be unboxed
    • linkedMap

      Helper function to unify code
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a LinkedOpenHashMap thats copies the contents of the provided map
    • linkedMap

      public ImmutableInt2BooleanOpenHashMap linkedMap(Map<? extends Integer,? extends Boolean> map)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a LinkedOpenHashMap thats copies the contents of the provided map
      Note:
      the map will be unboxed
    • immutable

      public ImmutableInt2BooleanOpenHashMap immutable(int[] keys, boolean[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a ImmutableOpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
    • immutable

      public ImmutableInt2BooleanOpenHashMap immutable(Integer[] keys, Boolean[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a ImmutableOpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      Note:
      the keys and values will be unboxed
    • immutable

      Helper function to unify code
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a ImmutableOpenHashMap thats copies the contents of the provided map
    • immutable

      public ImmutableInt2BooleanOpenHashMap immutable(Map<? extends Integer,? extends Boolean> map)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a ImmutableOpenHashMap thats copies the contents of the provided map
      Note:
      the map will be unboxed
    • customMap

      public Int2BooleanOpenCustomHashMap customMap(IntStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap
    • customMap

      public Int2BooleanOpenCustomHashMap customMap(int size, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap with a mimimum capacity
    • customMap

      public Int2BooleanOpenCustomHashMap customMap(int[] keys, boolean[] values, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
    • customMap

      public Int2BooleanOpenCustomHashMap customMap(Integer[] keys, Boolean[] values, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      Note:
      the keys and values will be unboxed
    • customMap

      public Int2BooleanOpenCustomHashMap customMap(Int2BooleanMap map, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap thats copies the contents of the provided map
    • customMap

      public Int2BooleanOpenCustomHashMap customMap(Map<? extends Integer,? extends Boolean> map, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap thats copies the contents of the provided map
      Note:
      the map will be unboxed
    • customLinkedMap

      public Int2BooleanLinkedOpenCustomHashMap customLinkedMap(IntStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap
    • customLinkedMap

      public Int2BooleanLinkedOpenCustomHashMap customLinkedMap(int size, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap with a mimimum capacity
    • customLinkedMap

      public Int2BooleanLinkedOpenCustomHashMap customLinkedMap(int[] keys, boolean[] values, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
    • customLinkedMap

      public Int2BooleanLinkedOpenCustomHashMap customLinkedMap(Integer[] keys, Boolean[] values, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      Note:
      the keys and values will be unboxed
    • customLinkedMap

      public Int2BooleanLinkedOpenCustomHashMap customLinkedMap(Int2BooleanMap map, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap thats copies the contents of the provided map
    • customLinkedMap

      public Int2BooleanLinkedOpenCustomHashMap customLinkedMap(Map<? extends Integer,? extends Boolean> map, IntStrategy strategy)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap thats copies the contents of the provided map
      Note:
      the map will be unboxed
    • arrayMap

      public Int2BooleanArrayMap arrayMap()
      Helper function to unify code
      Gibt zurück:
      a OpenHashMap
    • arrayMap

      public Int2BooleanArrayMap arrayMap(int size)
      Helper function to unify code
      Parameter:
      size - the minimum capacity of the Map
      Gibt zurück:
      a OpenHashMap with a mimimum capacity
    • arrayMap

      public Int2BooleanArrayMap arrayMap(int[] keys, boolean[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a OpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
    • arrayMap

      public Int2BooleanArrayMap arrayMap(Integer[] keys, Boolean[] values)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a OpenHashMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      Note:
      the keys and values will be unboxed
    • arrayMap

      public Int2BooleanArrayMap arrayMap(Int2BooleanMap map)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a OpenHashMap thats copies the contents of the provided map
    • arrayMap

      public Int2BooleanArrayMap arrayMap(Map<? extends Integer,? extends Boolean> map)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a OpenHashMap thats copies the contents of the provided map
      Note:
      the map will be unboxed
    • rbTreeMap

      public Int2BooleanRBTreeMap rbTreeMap()
      Helper function to unify code
      Gibt zurück:
      a RBTreeMap
    • rbTreeMap

      public Int2BooleanRBTreeMap rbTreeMap(IntComparator comp)
      Helper function to unify code
      Parameter:
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a RBTreeMap
    • rbTreeMap

      public Int2BooleanRBTreeMap rbTreeMap(int[] keys, boolean[] values, IntComparator comp)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a RBTreeMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
    • rbTreeMap

      public Int2BooleanRBTreeMap rbTreeMap(Integer[] keys, Boolean[] values, IntComparator comp)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a RBTreeMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      Note:
      the keys and values will be unboxed
    • rbTreeMap

      public Int2BooleanRBTreeMap rbTreeMap(Int2BooleanMap map, IntComparator comp)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a RBTreeMap thats copies the contents of the provided map
    • rbTreeMap

      public Int2BooleanRBTreeMap rbTreeMap(Map<? extends Integer,? extends Boolean> map, IntComparator comp)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a RBTreeMap thats copies the contents of the provided map
      Note:
      the map will be unboxed
    • avlTreeMap

      public Int2BooleanAVLTreeMap avlTreeMap()
      Helper function to unify code
      Gibt zurück:
      a AVLTreeMap
    • avlTreeMap

      public Int2BooleanAVLTreeMap avlTreeMap(IntComparator comp)
      Helper function to unify code
      Parameter:
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a AVLTreeMap
    • avlTreeMap

      public Int2BooleanAVLTreeMap avlTreeMap(int[] keys, boolean[] values, IntComparator comp)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a AVLTreeMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
    • avlTreeMap

      public Int2BooleanAVLTreeMap avlTreeMap(Integer[] keys, Boolean[] values, IntComparator comp)
      Helper function to unify code
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a AVLTreeMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      Note:
      the keys and values will be unboxed
    • avlTreeMap

      public Int2BooleanAVLTreeMap avlTreeMap(Int2BooleanMap map, IntComparator comp)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a AVLTreeMap thats copies the contents of the provided map
    • avlTreeMap

      public Int2BooleanAVLTreeMap avlTreeMap(Map<? extends Integer,? extends Boolean> map, IntComparator comp)
      Helper function to unify code
      Parameter:
      map - that should be cloned
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a AVLTreeMap thats copies the contents of the provided map
      Note:
      the map will be unboxed