K - the key typeV - the value typepublic interface XAddingMap<K,V> extends CapacityExtendable, ExtendedMap<K,V>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XAddingMap.Creator<K,V> |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(K key,
V value)
Adds the passed key and value as an entry if key is not yet contained.
|
boolean |
nullKeyAllowed() |
boolean |
nullValuesAllowed() |
boolean |
set(K key,
V value)
Sets the passed key and value to an appropriate entry if one can be found.
|
boolean |
valueSet(K sampleKey,
V value)
Sets only the passed value to an existing entry appropriate to the passed sampleKey.
|
currentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacityisFull, maximumCapacity, remainingCapacityhasVolatileElements, nullAllowedboolean nullKeyAllowed()
boolean nullValuesAllowed()
boolean add(K key, V value)
key - the keyvalue - the valuetrue if a new entry was createdboolean set(K key, V value)
key - the keyvalue - the valuetrue if an entry was changedCopyright © 2022 MicroStream Software. All rights reserved.