Interface XAddingMap<K,V>
-
- All Superinterfaces:
CapacityCarrying,CapacityExtendable,ExtendedCollection<KeyValue<K,V>>,ExtendedMap<K,V>,Sized
- All Known Subinterfaces:
XAddGetMap<K,V>,XAddingTable<K,V>,XBasicTable<K,V>,XChart<K,V>,XMap<K,V>,XPutGetMap<K,V>,XPuttingMap<K,V>,XTable<K,V>
- All Known Implementing Classes:
EqHashTable,HashTable,LockedMap
public interface XAddingMap<K,V> extends CapacityExtendable, ExtendedMap<K,V>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXAddingMap.Creator<K,V>
-
Method Summary
Modifier and Type Method Description booleanadd(K key, V value)Adds the passed key and value as an entry if key is not yet contained.booleannullKeyAllowed()booleannullValuesAllowed()booleanset(K key, V value)Sets the passed key and value to an appropriate entry if one can be found.booleanvalueSet(K sampleKey, V value)Sets only the passed value to an existing entry appropriate to the passed sampleKey.-
Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacity
-
Methods inherited from interface one.microstream.collections.interfaces.CapacityExtendable
currentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacity
-
Methods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
hasVolatileElements, nullAllowed
-
-
-
-
Method Detail
-
nullKeyAllowed
boolean nullKeyAllowed()
-
nullValuesAllowed
boolean nullValuesAllowed()
-
add
boolean add(K key, V value)
Adds the passed key and value as an entry if key is not yet contained. Return value indicates new entry.- Parameters:
key-value-
-
set
boolean set(K key, V value)
Sets the passed key and value to an appropriate entry if one can be found. Return value indicates entry change.- Parameters:
key-value-
-
-