Interface XPutGetMap<K,​V>

Type Parameters:
K - the key type
V - the value type
All Superinterfaces:
CapacityCarrying, CapacityExtendable, Copyable, ExtendedCollection<KeyValue<K,​V>>, ExtendedMap<K,​V>, Iterable<KeyValue<K,​V>>, Sized, XAddGetMap<K,​V>, XAddingMap<K,​V>, XGettingCollection<KeyValue<K,​V>>, XGettingMap<K,​V>, XGettingSet<KeyValue<K,​V>>, XIterable<KeyValue<K,​V>>, XJoinable<KeyValue<K,​V>>, XPuttingMap<K,​V>
All Known Subinterfaces:
XBasicTable<K,​V>, XChart<K,​V>, XMap<K,​V>, XTable<K,​V>
All Known Implementing Classes:
EqHashTable, HashTable, LockedMap

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

    • putGet

      KeyValue<K,​V> putGet​(K key, V value)
      Ensures the passed key and value to be contained as an entry in the map. Returns the old value or null.
      Parameters:
      key - the key
      value - the value
      Returns:
      the old value or null.
    • replace

      KeyValue<K,​V> replace​(K key, V value)