From 264dd4a5b5c808c90b721b5f51bb88d34771647e Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Thu, 26 Dec 2019 15:30:57 +0300 Subject: [PATCH] Map javadocs fixed #2448 --- .../src/main/java/org/redisson/api/RMapReactive.java | 12 ++++++------ redisson/src/main/java/org/redisson/api/RMapRx.java | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/redisson/src/main/java/org/redisson/api/RMapReactive.java b/redisson/src/main/java/org/redisson/api/RMapReactive.java index cbda60cfb..114373e01 100644 --- a/redisson/src/main/java/org/redisson/api/RMapReactive.java +++ b/redisson/src/main/java/org/redisson/api/RMapReactive.java @@ -171,14 +171,14 @@ public interface RMapReactive extends RExpirableReactive { /** * Returns the value to which the specified key is mapped, - * or {@code null} if this map contains no mapping for the key. + * or empty if this map contains no mapping for the key. *

* If map doesn't contain value for specified key and {@link MapLoader} is defined * then value will be loaded in read-through mode. * * @param key the key whose associated value is to be returned * @return the value to which the specified key is mapped, or - * {@code null} if this map contains no mapping for the key + * empty if this map contains no mapping for the key */ Mono get(K key); @@ -200,20 +200,20 @@ public interface RMapReactive extends RExpirableReactive { * If {@link MapWriter} is defined then keyis deleted in write-through mode. * * @param key - map key - * @return deleted value or null if there wasn't any association + * @return deleted value or empty if there wasn't any association */ Mono remove(K key); /** * Replaces previous value with a new value associated with the key. - * If there wasn't any association before then method returns null. + * If there wasn't any association before then method returns empty. *

* If {@link MapWriter} is defined then new valueis written in write-through mode. * * @param key - map key * @param value - map value * @return previous associated value - * or null if there wasn't any association and change hasn't been made + * or empty if there wasn't any association and change hasn't been made */ Mono replace(K key, V value); @@ -249,7 +249,7 @@ public interface RMapReactive extends RExpirableReactive { * * @param key - map key * @param value - map value - * @return null if key is a new one in the hash and value was set. + * @return empty if key is a new one in the hash and value was set. * Previous value if key already exists in the hash and change hasn't been made. */ Mono putIfAbsent(K key, V value); diff --git a/redisson/src/main/java/org/redisson/api/RMapRx.java b/redisson/src/main/java/org/redisson/api/RMapRx.java index 3a696915e..e9d9cf731 100644 --- a/redisson/src/main/java/org/redisson/api/RMapRx.java +++ b/redisson/src/main/java/org/redisson/api/RMapRx.java @@ -173,14 +173,14 @@ public interface RMapRx extends RExpirableRx { /** * Returns the value to which the specified key is mapped, - * or {@code null} if this map contains no mapping for the key. + * or empty if this map contains no mapping for the key. *

* If map doesn't contain value for specified key and {@link MapLoader} is defined * then value will be loaded in read-through mode. * * @param key the key whose associated value is to be returned * @return the value to which the specified key is mapped, or - * {@code null} if this map contains no mapping for the key + * empty if this map contains no mapping for the key */ Maybe get(K key); @@ -202,20 +202,20 @@ public interface RMapRx extends RExpirableRx { * If {@link MapWriter} is defined then keyis deleted in write-through mode. * * @param key - map key - * @return deleted value or null if there wasn't any association + * @return deleted value or empty if there wasn't any association */ Maybe remove(K key); /** * Replaces previous value with a new value associated with the key. - * If there wasn't any association before then method returns null. + * If there wasn't any association before then method returns empty. *

* If {@link MapWriter} is defined then new valueis written in write-through mode. * * @param key - map key * @param value - map value * @return previous associated value - * or null if there wasn't any association and change hasn't been made + * or empty if there wasn't any association and change hasn't been made */ Maybe replace(K key, V value); @@ -251,7 +251,7 @@ public interface RMapRx extends RExpirableRx { * * @param key - map key * @param value - map value - * @return null if key is a new one in the hash and value was set. + * @return empty if key is a new one in the hash and value was set. * Previous value if key already exists in the hash and change hasn't been made. */ Maybe putIfAbsent(K key, V value);