Klasse Int2ShortMap.MapBuilder

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

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

    • MapBuilder

      public MapBuilder()
  • Methodendetails

    • start

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

      public Int2ShortMap.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 Int2ShortMap.BuilderCache put(int key, short 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 Int2ShortMap.BuilderCache put(Integer key, Short 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 Int2ShortOpenHashMap map()
      Helper function to unify code
      Gibt zurück:
      a OpenHashMap
    • map

      public Int2ShortOpenHashMap 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 Int2ShortOpenHashMap map(int[] keys, short[] 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 Int2ShortOpenHashMap map(Integer[] keys, Short[] 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 Int2ShortOpenHashMap map(Map<? extends Integer,? extends Short> 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 Int2ShortLinkedOpenHashMap linkedMap()
      Helper function to unify code
      Gibt zurück:
      a LinkedOpenHashMap
    • linkedMap

      public Int2ShortLinkedOpenHashMap 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 Int2ShortLinkedOpenHashMap linkedMap(int[] keys, short[] 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 Int2ShortLinkedOpenHashMap linkedMap(Integer[] keys, Short[] 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

      public Int2ShortLinkedOpenHashMap linkedMap(Int2ShortMap 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
    • linkedMap

      public ImmutableInt2ShortOpenHashMap linkedMap(Map<? extends Integer,? extends Short> 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 ImmutableInt2ShortOpenHashMap immutable(int[] keys, short[] 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 ImmutableInt2ShortOpenHashMap immutable(Integer[] keys, Short[] 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 ImmutableInt2ShortOpenHashMap immutable(Map<? extends Integer,? extends Short> 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 Int2ShortOpenCustomHashMap customMap(IntStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap
    • customMap

      public Int2ShortOpenCustomHashMap 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 Int2ShortOpenCustomHashMap customMap(int[] keys, short[] 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 Int2ShortOpenCustomHashMap customMap(Integer[] keys, Short[] 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 Int2ShortOpenCustomHashMap customMap(Int2ShortMap 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 Int2ShortOpenCustomHashMap customMap(Map<? extends Integer,? extends Short> 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 Int2ShortLinkedOpenCustomHashMap customLinkedMap(IntStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap
    • customLinkedMap

      public Int2ShortLinkedOpenCustomHashMap 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 Int2ShortLinkedOpenCustomHashMap customLinkedMap(int[] keys, short[] 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 Int2ShortLinkedOpenCustomHashMap customLinkedMap(Integer[] keys, Short[] 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 Int2ShortLinkedOpenCustomHashMap customLinkedMap(Int2ShortMap 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 Int2ShortLinkedOpenCustomHashMap customLinkedMap(Map<? extends Integer,? extends Short> 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 Int2ShortArrayMap arrayMap()
      Helper function to unify code
      Gibt zurück:
      a OpenHashMap
    • arrayMap

      public Int2ShortArrayMap 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 Int2ShortArrayMap arrayMap(int[] keys, short[] 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 Int2ShortArrayMap arrayMap(Integer[] keys, Short[] 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 Int2ShortArrayMap arrayMap(Int2ShortMap 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 Int2ShortArrayMap arrayMap(Map<? extends Integer,? extends Short> 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 Int2ShortRBTreeMap rbTreeMap()
      Helper function to unify code
      Gibt zurück:
      a RBTreeMap
    • rbTreeMap

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

      public Int2ShortRBTreeMap rbTreeMap(int[] keys, short[] 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 Int2ShortRBTreeMap rbTreeMap(Integer[] keys, Short[] 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 Int2ShortRBTreeMap rbTreeMap(Int2ShortMap 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 Int2ShortRBTreeMap rbTreeMap(Map<? extends Integer,? extends Short> 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 Int2ShortAVLTreeMap avlTreeMap()
      Helper function to unify code
      Gibt zurück:
      a AVLTreeMap
    • avlTreeMap

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

      public Int2ShortAVLTreeMap avlTreeMap(int[] keys, short[] 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 Int2ShortAVLTreeMap avlTreeMap(Integer[] keys, Short[] 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 Int2ShortAVLTreeMap avlTreeMap(Int2ShortMap 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 Int2ShortAVLTreeMap avlTreeMap(Map<? extends Integer,? extends Short> 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