AbstractSieve.UpdateStrategy<K,V>
public static final class AbstractSieve.DefaultUpdateStrategy<K,V> extends java.lang.Object implements AbstractSieve.UpdateStrategy<K,V>
Constructor | Description |
---|---|
DefaultUpdateStrategy() |
Modifier and Type | Method | Description |
---|---|---|
V |
update(K key,
V newValue,
V oldValue) |
Computes the new value to be put in the store when a duplicate key is found.
|
public V update(K key, V newValue, V oldValue)
AbstractSieve.UpdateStrategy
update
in interface AbstractSieve.UpdateStrategy<K,V>
key
- the key that already appears in the store (to be more precise: its hash already appears in the store).newValue
- the new value associated with the key.oldValue
- the old value present in the store associated with the key.