From ccb009219defe8562f2d2f32c6c8ce53efa86f0a Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Tue, 12 May 2020 09:57:16 +0300 Subject: [PATCH] javadocs fixed --- .../src/main/java/org/redisson/api/RScoredSortedSet.java | 9 ++++----- .../java/org/redisson/api/RScoredSortedSetAsync.java | 8 ++++---- .../java/org/redisson/api/RScoredSortedSetReactive.java | 8 ++++---- .../main/java/org/redisson/api/RScoredSortedSetRx.java | 8 ++++---- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/redisson/src/main/java/org/redisson/api/RScoredSortedSet.java b/redisson/src/main/java/org/redisson/api/RScoredSortedSet.java index d1179f01d..59ba8e7b2 100644 --- a/redisson/src/main/java/org/redisson/api/RScoredSortedSet.java +++ b/redisson/src/main/java/org/redisson/api/RScoredSortedSet.java @@ -145,19 +145,18 @@ public interface RScoredSortedSet extends RScoredSortedSetAsync, Iterable< V pollLast(long timeout, TimeUnit unit); /** - * Removes and returns the head elements or {@code null} if this sorted set is empty. + * Removes and returns the head elements of this sorted set. * * @param count - elements amount - * @return the head element, - * or {@code null} if this sorted set is empty + * @return the head elements of this sorted set */ Collection pollFirst(int count); /** - * Removes and returns the tail elements or {@code null} if this sorted set is empty. + * Removes and returns the tail elements of this sorted set. * * @param count - elements amount - * @return the tail element or {@code null} if this sorted set is empty + * @return the tail elements of this sorted set */ Collection pollLast(int count); diff --git a/redisson/src/main/java/org/redisson/api/RScoredSortedSetAsync.java b/redisson/src/main/java/org/redisson/api/RScoredSortedSetAsync.java index db312dc4e..3309a7f1c 100644 --- a/redisson/src/main/java/org/redisson/api/RScoredSortedSetAsync.java +++ b/redisson/src/main/java/org/redisson/api/RScoredSortedSetAsync.java @@ -106,18 +106,18 @@ public interface RScoredSortedSetAsync extends RExpirableAsync, RSortableAsyn RFuture pollLastAsync(long timeout, TimeUnit unit); /** - * Removes and returns the head elements or {@code null} if this sorted set is empty. + * Removes and returns the head elements of this sorted set. * * @param count - elements amount - * @return the head elements + * @return the head elements of this sorted set */ RFuture> pollFirstAsync(int count); /** - * Removes and returns the tail elements or {@code null} if this sorted set is empty. + * Removes and returns the tail elements of this sorted set. * * @param count - elements amount - * @return the tail elements + * @return the tail elements of this sorted set */ RFuture> pollLastAsync(int count); diff --git a/redisson/src/main/java/org/redisson/api/RScoredSortedSetReactive.java b/redisson/src/main/java/org/redisson/api/RScoredSortedSetReactive.java index 1257914c2..e31cfeb51 100644 --- a/redisson/src/main/java/org/redisson/api/RScoredSortedSetReactive.java +++ b/redisson/src/main/java/org/redisson/api/RScoredSortedSetReactive.java @@ -96,18 +96,18 @@ public interface RScoredSortedSetReactive extends RExpirableReactive, RSortab Mono pollLast(long timeout, TimeUnit unit); /** - * Removes and returns the head elements or {@code null} if this sorted set is empty. + * Removes and returns the head elements of this sorted set. * * @param count - elements amount - * @return the head elements + * @return the head elements of this sorted set */ Mono> pollFirst(int count); /** - * Removes and returns the tail elements or {@code null} if this sorted set is empty. + * Removes and returns the tail elements of this sorted set. * * @param count - elements amount - * @return the tail elements + * @return the tail elements of this sorted set */ Mono> pollLast(int count); diff --git a/redisson/src/main/java/org/redisson/api/RScoredSortedSetRx.java b/redisson/src/main/java/org/redisson/api/RScoredSortedSetRx.java index 53c8479f1..051c6de4d 100644 --- a/redisson/src/main/java/org/redisson/api/RScoredSortedSetRx.java +++ b/redisson/src/main/java/org/redisson/api/RScoredSortedSetRx.java @@ -97,18 +97,18 @@ public interface RScoredSortedSetRx extends RExpirableRx, RSortableRx> Maybe pollLast(long timeout, TimeUnit unit); /** - * Removes and returns the head elements or {@code null} if this sorted set is empty. + * Removes and returns the head elements of this sorted set. * * @param count - elements amount - * @return the head elements + * @return the head elements of this sorted set */ Single> pollFirst(int count); /** - * Removes and returns the tail elements or {@code null} if this sorted set is empty. + * Removes and returns the tail elements of this sorted set. * * @param count - elements amount - * @return the tail elements + * @return the tail elements of this sorted set */ Single> pollLast(int count);