Klasse Object2BooleanMap.MapBuilder

java.lang.Object
speiger.src.collections.objects.maps.interfaces.Object2BooleanMap.MapBuilder
Umschließende Schnittstelle:
Object2BooleanMap<T>

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

    • MapBuilder

      public MapBuilder()
  • Methodendetails

    • start

      public <T> Object2BooleanMap.BuilderCache<T> 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
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Gibt zurück:
      a MapBuilder
    • start

      public <T> Object2BooleanMap.BuilderCache<T> 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
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      size - the expected minimum size of Elements in the Map, default is 16
      Gibt zurück:
      a MapBuilder
    • put

      public <T> Object2BooleanMap.BuilderCache<T> put(T 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
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanMap.BuilderCache<T> put(T 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
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanOpenHashMap<T> map()
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Gibt zurück:
      a OpenHashMap
    • map

      public <T> Object2BooleanOpenHashMap<T> map(int size)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      size - the minimum capacity of the Map
      Gibt zurück:
      a OpenHashMap with a mimimum capacity
    • map

      public <T> Object2BooleanOpenHashMap<T> map(T[] keys, boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanOpenHashMap<T> map(T[] keys, Boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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

      public <T> Object2BooleanOpenHashMap<T> map(Object2BooleanMap<T> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a OpenHashMap thats copies the contents of the provided map
    • map

      public <T> Object2BooleanOpenHashMap<T> map(Map<? extends T,? extends Boolean> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanLinkedOpenHashMap<T> linkedMap()
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Gibt zurück:
      a LinkedOpenHashMap
    • linkedMap

      public <T> Object2BooleanLinkedOpenHashMap<T> linkedMap(int size)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      size - the minimum capacity of the Map
      Gibt zurück:
      a LinkedOpenHashMap with a mimimum capacity
    • linkedMap

      public <T> Object2BooleanLinkedOpenHashMap<T> linkedMap(T[] keys, boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanLinkedOpenHashMap<T> linkedMap(T[] keys, Boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanLinkedOpenHashMap<T> linkedMap(Object2BooleanMap<T> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a LinkedOpenHashMap thats copies the contents of the provided map
    • linkedMap

      public <T> ImmutableObject2BooleanOpenHashMap<T> linkedMap(Map<? extends T,? extends Boolean> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> ImmutableObject2BooleanOpenHashMap<T> immutable(T[] keys, boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> ImmutableObject2BooleanOpenHashMap<T> immutable(T[] keys, Boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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

      public <T> ImmutableObject2BooleanOpenHashMap<T> immutable(Object2BooleanMap<T> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a ImmutableOpenHashMap thats copies the contents of the provided map
    • immutable

      public <T> ImmutableObject2BooleanOpenHashMap<T> immutable(Map<? extends T,? extends Boolean> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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
    • enumMap

      public <T extends Enum<T>> Enum2BooleanMap<T> enumMap(Class<T> keyType)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      keyType - the EnumClass that should be used
      Gibt zurück:
      a Empty EnumMap
    • enumMap

      public <T extends Enum<T>> Enum2BooleanMap<T> enumMap(T[] keys, Boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a EnumMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      IllegalArgumentException - if the keys are in length 0
      Note:
      the keys and values will be unboxed
    • enumMap

      public <T extends Enum<T>> Enum2BooleanMap<T> enumMap(T[] keys, boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a EnumMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      IllegalArgumentException - if the keys are in length 0
    • enumMap

      public <T extends Enum<T>> Enum2BooleanMap<T> enumMap(Map<? extends T,? extends Boolean> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a EnumMap thats copies the contents of the provided map
      Löst aus:
      IllegalArgumentException - if the map is Empty and is not a EnumMap
      Note:
      the map will be unboxed
    • enumMap

      public <T extends Enum<T>> Enum2BooleanMap<T> enumMap(Object2BooleanMap<T> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a EnumMap thats copies the contents of the provided map
      Löst aus:
      IllegalArgumentException - if the map is Empty and is not a EnumMap
    • linkedEnumMap

      public <T extends Enum<T>> LinkedEnum2BooleanMap<T> linkedEnumMap(Class<T> keyType)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      keyType - the EnumClass that should be used
      Gibt zurück:
      a Empty LinkedEnumMap
    • linkedEnumMap

      public <T extends Enum<T>> LinkedEnum2BooleanMap<T> linkedEnumMap(T[] keys, Boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a LinkedEnumMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      IllegalArgumentException - if the keys are in length 0
      Note:
      the keys and values will be unboxed
    • linkedEnumMap

      public <T extends Enum<T>> LinkedEnum2BooleanMap<T> linkedEnumMap(T[] keys, boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      keys - the keys that should be inserted
      values - the values that should be inserted
      Gibt zurück:
      a LinkedEnumMap thats contains the injected values
      Löst aus:
      IllegalStateException - if the keys and values do not match in length
      IllegalArgumentException - if the keys are in length 0
    • linkedEnumMap

      public <T extends Enum<T>> LinkedEnum2BooleanMap<T> linkedEnumMap(Map<? extends T,? extends Boolean> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a LinkedEnumMap thats copies the contents of the provided map
      Löst aus:
      IllegalArgumentException - if the map is Empty and is not a EnumMap
      Note:
      the map will be unboxed
    • linkedEnumMap

      public <T extends Enum<T>> LinkedEnum2BooleanMap<T> linkedEnumMap(Object2BooleanMap<T> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a LinkedEnumMap thats copies the contents of the provided map
      Löst aus:
      IllegalArgumentException - if the map is Empty and is not a EnumMap
    • customMap

      public <T> Object2BooleanOpenCustomHashMap<T> customMap(ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap
    • customMap

      public <T> Object2BooleanOpenCustomHashMap<T> customMap(int size, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      size - the minimum capacity of the Map
      strategy - the Hash Controller
      Gibt zurück:
      a CustomOpenHashMap with a mimimum capacity
    • customMap

      public <T> Object2BooleanOpenCustomHashMap<T> customMap(T[] keys, boolean[] values, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanOpenCustomHashMap<T> customMap(T[] keys, Boolean[] values, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanOpenCustomHashMap<T> customMap(Object2BooleanMap<T> map, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanOpenCustomHashMap<T> customMap(Map<? extends T,? extends Boolean> map, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanLinkedOpenCustomHashMap<T> customLinkedMap(ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap
    • customLinkedMap

      public <T> Object2BooleanLinkedOpenCustomHashMap<T> customLinkedMap(int size, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      size - the minimum capacity of the Map
      strategy - the Hash Controller
      Gibt zurück:
      a CustomLinkedOpenHashMap with a mimimum capacity
    • customLinkedMap

      public <T> Object2BooleanLinkedOpenCustomHashMap<T> customLinkedMap(T[] keys, boolean[] values, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanLinkedOpenCustomHashMap<T> customLinkedMap(T[] keys, Boolean[] values, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanLinkedOpenCustomHashMap<T> customLinkedMap(Object2BooleanMap<T> map, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanLinkedOpenCustomHashMap<T> customLinkedMap(Map<? extends T,? extends Boolean> map, ObjectStrategy<T> strategy)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanArrayMap<T> arrayMap()
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Gibt zurück:
      a OpenHashMap
    • arrayMap

      public <T> Object2BooleanArrayMap<T> arrayMap(int size)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      size - the minimum capacity of the Map
      Gibt zurück:
      a OpenHashMap with a mimimum capacity
    • arrayMap

      public <T> Object2BooleanArrayMap<T> arrayMap(T[] keys, boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanArrayMap<T> arrayMap(T[] keys, Boolean[] values)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanArrayMap<T> arrayMap(Object2BooleanMap<T> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      map - that should be cloned
      Gibt zurück:
      a OpenHashMap thats copies the contents of the provided map
    • arrayMap

      public <T> Object2BooleanArrayMap<T> arrayMap(Map<? extends T,? extends Boolean> map)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanRBTreeMap<T> rbTreeMap()
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Gibt zurück:
      a RBTreeMap
    • rbTreeMap

      public <T> Object2BooleanRBTreeMap<T> rbTreeMap(Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a RBTreeMap
    • rbTreeMap

      public <T> Object2BooleanRBTreeMap<T> rbTreeMap(T[] keys, boolean[] values, Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanRBTreeMap<T> rbTreeMap(T[] keys, Boolean[] values, Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanRBTreeMap<T> rbTreeMap(Object2BooleanMap<T> map, Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanRBTreeMap<T> rbTreeMap(Map<? extends T,? extends Boolean> map, Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanAVLTreeMap<T> avlTreeMap()
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Gibt zurück:
      a AVLTreeMap
    • avlTreeMap

      public <T> Object2BooleanAVLTreeMap<T> avlTreeMap(Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      Parameter:
      comp - the Sorter of the TreeMap
      Gibt zurück:
      a AVLTreeMap
    • avlTreeMap

      public <T> Object2BooleanAVLTreeMap<T> avlTreeMap(T[] keys, boolean[] values, Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanAVLTreeMap<T> avlTreeMap(T[] keys, Boolean[] values, Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanAVLTreeMap<T> avlTreeMap(Object2BooleanMap<T> map, Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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 <T> Object2BooleanAVLTreeMap<T> avlTreeMap(Map<? extends T,? extends Boolean> map, Comparator<T> comp)
      Helper function to unify code
      Typparameter:
      T - the keyType of elements maintained by this Collection
      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