Interface XPuttingMap<K,​V>

Type Parameters:
K - the key type
V - the value type
All Superinterfaces:
CapacityCarrying, CapacityExtendable, ExtendedCollection<KeyValue<K,​V>>, ExtendedMap<K,​V>, Sized, XAddingMap<K,​V>
All Known Subinterfaces:
XBasicTable<K,​V>, XChart<K,​V>, XMap<K,​V>, XPutGetMap<K,​V>, XTable<K,​V>
All Known Implementing Classes:
EqHashTable, HashTable, LockedMap

public interface XPuttingMap<K,​V>
extends XAddingMap<K,​V>
  • Method Details

    • put

      boolean put​(K key, V value)
      Ensures the passed key and value to be contained as an entry in the map. Return value indicates new entry.
      Parameters:
      key - the key
      value - the value
      Returns:
      true if an entry was created
    • valuePut

      boolean valuePut​(K sampleKey, V value)
      Ensures the passed value to be either set to an existing entry appropriate to sampleKey or inserted as a new one. Return value indicates new entry.
      Parameters:
      sampleKey - the key
      value - the value
      Returns:
      true if an entry was created