Updated SPI model and added examples

This commit is contained in:
leventov
2015-05-18 13:42:07 +01:00
parent 6c56813b5e
commit 5829cdbfba
10 changed files with 195 additions and 33 deletions
@@ -42,15 +42,10 @@ public interface MapEntry<K, V> extends HashEntry<K> {
@NotNull Value<V, ?> value();
/**
* Replaces the entry's value with the new one. Returns {@code true} if the replace operation
* was successful, {@code false} if it failed for any reason.
*
* <p>This method if the default implementation for {@link MapEntryOperations#replaceValue},
* which might be customized over the default.
* Replaces the entry's value with the new one.
*
* @throws IllegalStateException if some locking/state conditions required to perform replace
* operation are not met
*/
boolean defaultReplaceValue(Value<V, ?> newValue);
void doReplaceValue(Value<V, ?> newValue);
}