Klasse Int2ObjectMap.BuilderCache<V>

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

public static class Int2ObjectMap.BuilderCache<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 Int2ObjectMap.BuilderCache<V> put(int 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

      public Int2ObjectMap.BuilderCache<V> put(Integer 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 Int2ObjectMap.BuilderCache<V> putAll(Map<? extends Integer,? 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 Int2ObjectOpenHashMap<V> map()
      Builds the Keys and Values into a Hash Map
      Gibt zurück:
      a Int2ObjectOpenHashMap
    • linkedMap

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

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

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

      public Int2ObjectLinkedOpenCustomHashMap<V> customLinkedMap(IntStrategy 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 Int2ObjectLinkedOpenCustomHashMap
    • concurrentMap

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

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

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

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

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

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