Skip to content

Commit 020e369

Browse files
committed
Polishing.
Update Bound operations parameter documentation order. Tweak wording. See #2214
1 parent 6f949f5 commit 020e369

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/main/java/org/springframework/data/redis/core/BoundZSetOperations.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
4040
/**
4141
* Add {@code value} to a sorted set at the bound key, or update its {@code score} if it already exists.
4242
*
43-
* @param score the score.
4443
* @param value the value.
44+
* @param score the score.
4545
* @return {@literal null} when used in pipeline / transaction.
4646
* @see <a href="https://redis.io/commands/zadd">Redis Documentation: ZADD</a>
4747
*/
@@ -51,8 +51,8 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
5151
/**
5252
* Add {@code value} to a sorted set at {@code key} if it does not already exists.
5353
*
54-
* @param score the score.
5554
* @param value the value.
55+
* @param score the score.
5656
* @return {@literal null} when used in pipeline / transaction.
5757
* @since 2.5
5858
* @see <a href="https://redis.io/commands/zadd">Redis Documentation: ZADD NX</a>
@@ -94,8 +94,8 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
9494
/**
9595
* Increment the score of element with {@code value} in sorted set by {@code increment}.
9696
*
97-
* @param delta
9897
* @param value the value.
98+
* @param delta the delta to add. Can be negative.
9999
* @return {@literal null} when used in pipeline / transaction.
100100
* @see <a href="https://redis.io/commands/zincrby">Redis Documentation: ZINCRBY</a>
101101
*/

src/main/java/org/springframework/data/redis/core/ReactiveZSetOperations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public interface ReactiveZSetOperations<K, V> {
4242
* Add {@code value} to a sorted set at {@code key}, or update its {@code score} if it already exists.
4343
*
4444
* @param key must not be {@literal null}.
45-
* @param score the score.
4645
* @param value the value.
46+
* @param score the score.
4747
* @return
4848
* @see <a href="https://redis.io/commands/zadd">Redis Documentation: ZADD</a>
4949
*/
@@ -73,8 +73,8 @@ public interface ReactiveZSetOperations<K, V> {
7373
* Increment the score of element with {@code value} in sorted set by {@code increment}.
7474
*
7575
* @param key must not be {@literal null}.
76-
* @param delta
7776
* @param value the value.
77+
* @param delta the delta to add. Can be negative.
7878
* @return
7979
* @see <a href="https://redis.io/commands/zincrby">Redis Documentation: ZINCRBY</a>
8080
*/

src/main/java/org/springframework/data/redis/core/ZSetOperations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static <V> TypedTuple<V> of(V value, @Nullable Double score) {
126126
*
127127
* @param key must not be {@literal null}.
128128
* @param value the value.
129-
* @param delta
129+
* @param delta the delta to add. Can be negative.
130130
* @return {@literal null} when used in pipeline / transaction.
131131
* @see <a href="https://redis.io/commands/zincrby">Redis Documentation: ZINCRBY</a>
132132
*/

0 commit comments

Comments
 (0)