Klasse Long2ShortMap.BuilderCache

java.lang.Object
speiger.src.collections.longs.maps.interfaces.Long2ShortMap.BuilderCache
Umschließende Schnittstelle:
Long2ShortMap

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

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

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

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

      public Long2ShortLinkedOpenCustomHashMap customLinkedMap(LongStrategy 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 Long2ShortLinkedOpenCustomHashMap
    • concurrentMap

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

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

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

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

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

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