Klasse Int2LongMap.BuilderCache

java.lang.Object
speiger.src.collections.ints.maps.interfaces.Int2LongMap.BuilderCache
Umschließende Schnittstelle:
Int2LongMap

public static class Int2LongMap.BuilderCache 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 Int2LongMap.BuilderCache put(int key, long 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 Int2LongMap.BuilderCache put(Integer key, Long 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 Int2LongMap.BuilderCache putAll(Map<? extends Integer,? extends Long> 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 Int2LongOpenHashMap map()
      Builds the Keys and Values into a Hash Map
      Gibt zurück:
      a Int2LongOpenHashMap
    • linkedMap

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

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

      public Int2LongOpenCustomHashMap 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 Int2LongOpenCustomHashMap
    • customLinkedMap

      public Int2LongLinkedOpenCustomHashMap 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 Int2LongLinkedOpenCustomHashMap
    • concurrentMap

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

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

      public Int2LongRBTreeMap rbTreeMap()
      Builds the Keys and Values into a RedBlack TreeMap
      Gibt zurück:
      a Int2LongRBTreeMap
    • rbTreeMap

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

      public Int2LongAVLTreeMap avlTreeMap()
      Builds the Keys and Values into a AVL TreeMap
      Gibt zurück:
      a Int2LongAVLTreeMap
    • avlTreeMap

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