Klasse Char2CharMap.MapBuilder

java.lang.Object
speiger.src.collections.chars.maps.interfaces.Char2CharMap.MapBuilder
Umschließende Schnittstelle:
Char2CharMap

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

    • MapBuilder

      public MapBuilder()
  • Methodendetails

    • start

      public Char2CharMap.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 Char2CharMap.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 Char2CharMap.BuilderCache put(char key, char 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 Char2CharMap.BuilderCache put(Character key, Character 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 Char2CharOpenHashMap map()
      Helper function to unify code
      Gibt zurück:
      a OpenHashMap
    • map

      public Char2CharOpenHashMap 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 Char2CharOpenHashMap map(char[] keys, char[] 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 Char2CharOpenHashMap map(Character[] keys, Character[] 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 Char2CharOpenHashMap map(Map<? extends Character,? extends Character> 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 Char2CharLinkedOpenHashMap linkedMap()
      Helper function to unify code
      Gibt zurück:
      a LinkedOpenHashMap
    • linkedMap

      public Char2CharLinkedOpenHashMap 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 Char2CharLinkedOpenHashMap linkedMap(char[] keys, char[] 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 Char2CharLinkedOpenHashMap linkedMap(Character[] keys, Character[] 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 Char2CharLinkedOpenHashMap linkedMap(Char2CharMap 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 ImmutableChar2CharOpenHashMap linkedMap(Map<? extends Character,? extends Character> 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 ImmutableChar2CharOpenHashMap immutable(char[] keys, char[] 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 ImmutableChar2CharOpenHashMap immutable(Character[] keys, Character[] 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 ImmutableChar2CharOpenHashMap immutable(Map<? extends Character,? extends Character> 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 Char2CharOpenCustomHashMap customMap(CharStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap
    • customMap

      public Char2CharOpenCustomHashMap customMap(int size, CharStrategy 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 Char2CharOpenCustomHashMap customMap(char[] keys, char[] values, CharStrategy 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 Char2CharOpenCustomHashMap customMap(Character[] keys, Character[] values, CharStrategy 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 Char2CharOpenCustomHashMap customMap(Char2CharMap map, CharStrategy 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 Char2CharOpenCustomHashMap customMap(Map<? extends Character,? extends Character> map, CharStrategy 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 Char2CharLinkedOpenCustomHashMap customLinkedMap(CharStrategy strategy)
      Helper function to unify code
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap
    • customLinkedMap

      public Char2CharLinkedOpenCustomHashMap customLinkedMap(int size, CharStrategy 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 Char2CharLinkedOpenCustomHashMap customLinkedMap(char[] keys, char[] values, CharStrategy 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 Char2CharLinkedOpenCustomHashMap customLinkedMap(Character[] keys, Character[] values, CharStrategy 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 Char2CharLinkedOpenCustomHashMap customLinkedMap(Char2CharMap map, CharStrategy 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 Char2CharLinkedOpenCustomHashMap customLinkedMap(Map<? extends Character,? extends Character> map, CharStrategy 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 Char2CharArrayMap arrayMap()
      Helper function to unify code
      Gibt zurück:
      a OpenHashMap
    • arrayMap

      public Char2CharArrayMap 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 Char2CharArrayMap arrayMap(char[] keys, char[] 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 Char2CharArrayMap arrayMap(Character[] keys, Character[] 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 Char2CharArrayMap arrayMap(Char2CharMap 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 Char2CharArrayMap arrayMap(Map<? extends Character,? extends Character> 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 Char2CharRBTreeMap rbTreeMap()
      Helper function to unify code
      Gibt zurück:
      a RBTreeMap
    • rbTreeMap

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

      public Char2CharRBTreeMap rbTreeMap(char[] keys, char[] values, CharComparator 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 Char2CharRBTreeMap rbTreeMap(Character[] keys, Character[] values, CharComparator 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 Char2CharRBTreeMap rbTreeMap(Char2CharMap map, CharComparator 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 Char2CharRBTreeMap rbTreeMap(Map<? extends Character,? extends Character> map, CharComparator 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 Char2CharAVLTreeMap avlTreeMap()
      Helper function to unify code
      Gibt zurück:
      a AVLTreeMap
    • avlTreeMap

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

      public Char2CharAVLTreeMap avlTreeMap(char[] keys, char[] values, CharComparator 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 Char2CharAVLTreeMap avlTreeMap(Character[] keys, Character[] values, CharComparator 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 Char2CharAVLTreeMap avlTreeMap(Char2CharMap map, CharComparator 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 Char2CharAVLTreeMap avlTreeMap(Map<? extends Character,? extends Character> map, CharComparator 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