Klasse Object2ObjectMap.BuilderCache<T,V>

java.lang.Object
speiger.src.collections.objects.maps.interfaces.Object2ObjectMap.BuilderCache<T,V>
Typparameter:
T - the keyType of elements maintained by this Collection
V - the keyType of elements maintained by this Collection
Umschließende Schnittstelle:
Object2ObjectMap<T,V>

public static class Object2ObjectMap.BuilderCache<T,V> extends Object
Builder Cache for allowing to buildMaps
  • Konstruktordetails

    • BuilderCache

      public BuilderCache()
      Default Constructor
    • BuilderCache

      public BuilderCache(int initialSize)
      Constructor providing a Minimum Capcity
      Parameter:
      initialSize - the requested start capacity
  • Methodendetails

    • put

      public Object2ObjectMap.BuilderCache<T,V> put(T key, V value)
      Helper function to add a Entry into the Map
      Parameter:
      key - the key that should be added
      value - the value that should be added
      Gibt zurück:
      self
    • put

      Helper function to add a Entry into the Map
      Parameter:
      entry - the Entry that should be added
      Gibt zurück:
      self
    • putAll

      Helper function to add a Map to the Map
      Parameter:
      map - that should be added
      Gibt zurück:
      self
    • putAll

      public Object2ObjectMap.BuilderCache<T,V> putAll(Map<? extends T,? extends V> map)
      Helper function to add a Map to the Map
      Parameter:
      map - that should be added
      Gibt zurück:
      self
    • putAll

      Helper function to add a Collection of Entries to the Map
      Parameter:
      c - that should be added
      Gibt zurück:
      self
    • map

      public Object2ObjectOpenHashMap<T,V> map()
      Builds the Keys and Values into a Hash Map
      Gibt zurück:
      a Object2ObjectOpenHashMap
    • linkedMap

      public Object2ObjectLinkedOpenHashMap<T,V> linkedMap()
      Builds the Keys and Values into a Linked Hash Map
      Gibt zurück:
      a Object2ObjectLinkedOpenHashMap
    • immutable

      public ImmutableObject2ObjectOpenHashMap<T,V> immutable()
      Builds the Keys and Values into a Immutable Hash Map
      Gibt zurück:
      a ImmutableObject2ObjectOpenHashMap
    • customMap

      public Object2ObjectOpenCustomHashMap<T,V> customMap(ObjectStrategy<T> strategy)
      Builds the Keys and Values into a Custom Hash Map
      Parameter:
      strategy - the that controls the keys and values
      Gibt zurück:
      a Object2ObjectOpenCustomHashMap
    • customLinkedMap

      public Object2ObjectLinkedOpenCustomHashMap<T,V> customLinkedMap(ObjectStrategy<T> strategy)
      Builds the Keys and Values into a Linked Custom Hash Map
      Parameter:
      strategy - the that controls the keys and values
      Gibt zurück:
      a Object2ObjectLinkedOpenCustomHashMap
    • concurrentMap

      public Object2ObjectConcurrentOpenHashMap<T,V> concurrentMap()
      Builds the Keys and Values into a Concurrent Hash Map
      Gibt zurück:
      a Object2ObjectConcurrentOpenHashMap
    • arrayMap

      public Object2ObjectArrayMap<T,V> arrayMap()
      Builds the Keys and Values into a Array Map
      Gibt zurück:
      a Object2ObjectArrayMap
    • rbTreeMap

      public Object2ObjectRBTreeMap<T,V> rbTreeMap()
      Builds the Keys and Values into a RedBlack TreeMap
      Gibt zurück:
      a Object2ObjectRBTreeMap
    • rbTreeMap

      public Object2ObjectRBTreeMap<T,V> rbTreeMap(Comparator<T> comp)
      Builds the Keys and Values into a RedBlack TreeMap
      Parameter:
      comp - the Comparator that sorts the Tree
      Gibt zurück:
      a Object2ObjectRBTreeMap
    • avlTreeMap

      public Object2ObjectAVLTreeMap<T,V> avlTreeMap()
      Builds the Keys and Values into a AVL TreeMap
      Gibt zurück:
      a Object2ObjectAVLTreeMap
    • avlTreeMap

      public Object2ObjectAVLTreeMap<T,V> avlTreeMap(Comparator<T> comp)
      Builds the Keys and Values into a AVL TreeMap
      Parameter:
      comp - the Comparator that sorts the Tree
      Gibt zurück:
      a Object2ObjectAVLTreeMap