Skip to content

Commit 8ab8a4a

Browse files
committed
Polishing.
Update Bound operations parameter documentation order. Tweak wording. See #2214
1 parent 70378b1 commit 8ab8a4a

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
4545
/**
4646
* Add {@code value} to a sorted set at the bound key, or update its {@code score} if it already exists.
4747
*
48-
* @param score the score.
4948
* @param value the value.
49+
* @param score the score.
5050
* @return {@literal null} when used in pipeline / transaction.
5151
* @see <a href="https://redis.io/commands/zadd">Redis Documentation: ZADD</a>
5252
*/
@@ -56,8 +56,8 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
5656
/**
5757
* Add {@code value} to a sorted set at the bound key if it does not already exists.
5858
*
59-
* @param score the score.
6059
* @param value the value.
60+
* @param score the score.
6161
* @return {@literal null} when used in pipeline / transaction.
6262
* @since 2.5
6363
* @see <a href="https://redis.io/commands/zadd">Redis Documentation: ZADD NX</a>
@@ -99,8 +99,8 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
9999
/**
100100
* Increment the score of element with {@code value} in sorted set by {@code increment}.
101101
*
102-
* @param delta
103102
* @param value the value.
103+
* @param delta the delta to add. Can be negative.
104104
* @return {@literal null} when used in pipeline / transaction.
105105
* @see <a href="https://redis.io/commands/zincrby">Redis Documentation: ZINCRBY</a>
106106
*/
@@ -119,7 +119,7 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
119119
/**
120120
* Get {@code count} distinct random elements from set at the bound key.
121121
*
122-
* @param count nr of members to return
122+
* @param count number of members to return.
123123
* @return empty {@link Set} if {@code key} does not exist.
124124
* @throws IllegalArgumentException if count is negative.
125125
* @since 2.6
@@ -131,7 +131,7 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
131131
/**
132132
* Get {@code count} random elements from set at the bound key.
133133
*
134-
* @param count nr of members to return.
134+
* @param count number of members to return.
135135
* @return empty {@link List} if {@code key} does not exist or {@literal null} when used in pipeline / transaction.
136136
* @throws IllegalArgumentException if count is negative.
137137
* @since 2.6
@@ -152,7 +152,7 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
152152
/**
153153
* Get {@code count} distinct random elements with their score from set at the bound key.
154154
*
155-
* @param count nr of members to return
155+
* @param count number of members to return.
156156
* @return empty {@link Set} if {@code key} does not exist.
157157
* @throws IllegalArgumentException if count is negative.
158158
* @since 2.6
@@ -164,7 +164,7 @@ public interface BoundZSetOperations<K, V> extends BoundKeyOperations<K> {
164164
/**
165165
* Get {@code count} random elements with their score from set at the bound key.
166166
*
167-
* @param count nr of members to return.
167+
* @param count number of members to return.
168168
* @return empty {@link List} if {@code key} does not exist or {@literal null} when used in pipeline / transaction.
169169
* @throws IllegalArgumentException if count is negative.
170170
* @since 2.6

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public interface ReactiveZSetOperations<K, V> {
4545
* Add {@code value} to a sorted set at {@code key}, or update its {@code score} if it already exists.
4646
*
4747
* @param key must not be {@literal null}.
48-
* @param score the score.
4948
* @param value the value.
49+
* @param score the score.
5050
* @return
5151
* @see <a href="https://redis.io/commands/zadd">Redis Documentation: ZADD</a>
5252
*/
@@ -76,8 +76,8 @@ public interface ReactiveZSetOperations<K, V> {
7676
* Increment the score of element with {@code value} in sorted set by {@code increment}.
7777
*
7878
* @param key must not be {@literal null}.
79-
* @param delta
8079
* @param value the value.
80+
* @param delta the delta to add. Can be negative.
8181
* @return
8282
* @see <a href="https://redis.io/commands/zincrby">Redis Documentation: ZINCRBY</a>
8383
*/
@@ -97,7 +97,7 @@ public interface ReactiveZSetOperations<K, V> {
9797
* Get {@code count} distinct random elements from set at {@code key}.
9898
*
9999
* @param key must not be {@literal null}.
100-
* @param count nr of members to return
100+
* @param count number of members to return.
101101
* @return
102102
* @throws IllegalArgumentException if count is negative.
103103
* @since 2.6
@@ -109,7 +109,7 @@ public interface ReactiveZSetOperations<K, V> {
109109
* Get {@code count} random elements from set at {@code key}.
110110
*
111111
* @param key must not be {@literal null}.
112-
* @param count nr of members to return.
112+
* @param count number of members to return.
113113
* @return
114114
* @throws IllegalArgumentException if count is negative.
115115
* @since 2.6
@@ -131,7 +131,7 @@ public interface ReactiveZSetOperations<K, V> {
131131
* Get {@code count} distinct random elements with their score from set at {@code key}.
132132
*
133133
* @param key must not be {@literal null}.
134-
* @param count nr of members to return
134+
* @param count number of members to return.
135135
* @return
136136
* @throws IllegalArgumentException if count is negative.
137137
* @since 2.6
@@ -143,7 +143,7 @@ public interface ReactiveZSetOperations<K, V> {
143143
* Get {@code count} random elements with their score from set at {@code key}.
144144
*
145145
* @param key must not be {@literal null}.
146-
* @param count nr of members to return.
146+
* @param count number of members to return.
147147
* @return
148148
* @throws IllegalArgumentException if count is negative.
149149
* @since 2.6

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static <V> TypedTuple<V> of(V value, @Nullable Double score) {
131131
*
132132
* @param key must not be {@literal null}.
133133
* @param value the value.
134-
* @param delta
134+
* @param delta the delta to add. Can be negative.
135135
* @return {@literal null} when used in pipeline / transaction.
136136
* @see <a href="https://redis.io/commands/zincrby">Redis Documentation: ZINCRBY</a>
137137
*/
@@ -152,7 +152,7 @@ static <V> TypedTuple<V> of(V value, @Nullable Double score) {
152152
* Get {@code count} distinct random elements from set at {@code key}.
153153
*
154154
* @param key must not be {@literal null}.
155-
* @param count nr of members to return
155+
* @param count number of members to return.
156156
* @return empty {@link Set} if {@code key} does not exist.
157157
* @throws IllegalArgumentException if count is negative.
158158
* @since 2.6
@@ -165,7 +165,7 @@ static <V> TypedTuple<V> of(V value, @Nullable Double score) {
165165
* Get {@code count} random elements from set at {@code key}.
166166
*
167167
* @param key must not be {@literal null}.
168-
* @param count nr of members to return.
168+
* @param count number of members to return.
169169
* @return empty {@link List} if {@code key} does not exist or {@literal null} when used in pipeline / transaction.
170170
* @throws IllegalArgumentException if count is negative.
171171
* @since 2.6
@@ -188,7 +188,7 @@ static <V> TypedTuple<V> of(V value, @Nullable Double score) {
188188
* Get {@code count} distinct random elements with their score from set at {@code key}.
189189
*
190190
* @param key must not be {@literal null}.
191-
* @param count nr of members to return
191+
* @param count number of members to return.
192192
* @return empty {@link Set} if {@code key} does not exist.
193193
* @throws IllegalArgumentException if count is negative.
194194
* @since 2.6
@@ -201,7 +201,7 @@ static <V> TypedTuple<V> of(V value, @Nullable Double score) {
201201
* Get {@code count} random elements with their score from set at {@code key}.
202202
*
203203
* @param key must not be {@literal null}.
204-
* @param count nr of members to return.
204+
* @param count number of members to return.
205205
* @return empty {@link List} if {@code key} does not exist or {@literal null} when used in pipeline / transaction.
206206
* @throws IllegalArgumentException if count is negative.
207207
* @since 2.6

0 commit comments

Comments
 (0)