diff --git a/src/main/java/org/springframework/data/redis/connection/RedisZSetCommands.java b/src/main/java/org/springframework/data/redis/connection/RedisZSetCommands.java index d16b544fa..d67b238f1 100644 --- a/src/main/java/org/springframework/data/redis/connection/RedisZSetCommands.java +++ b/src/main/java/org/springframework/data/redis/connection/RedisZSetCommands.java @@ -23,7 +23,7 @@ import org.springframework.util.Assert; /** * ZSet(SortedSet)-specific commands supported by Redis. - * + * * @author Costin Leau * @author Christoph Strobl * @author Thomas Darimont @@ -51,7 +51,7 @@ public interface RedisZSetCommands { /** * {@link Range} defines {@literal min} and {@literal max} values to retrieve from a {@literal ZSET}. - * + * * @author Christoph Strobl * @since 1.6 */ @@ -80,7 +80,7 @@ public interface RedisZSetCommands { /** * Greater Than Equals - * + * * @param min * @return */ @@ -93,7 +93,7 @@ public interface RedisZSetCommands { /** * Greater Than - * + * * @param min * @return */ @@ -106,7 +106,7 @@ public interface RedisZSetCommands { /** * Less Then Equals - * + * * @param max * @return */ @@ -119,7 +119,7 @@ public interface RedisZSetCommands { /** * Less Than - * + * * @param max * @return */ @@ -304,7 +304,7 @@ public interface RedisZSetCommands { /** * Get set of {@link Tuple}s where score is between {@code Range#min} and {@code Range#max} from sorted set. - * + * * @param key must not be {@literal null}. * @param range must not be {@literal null}. * @return @@ -365,7 +365,7 @@ public interface RedisZSetCommands { /** * Get set of {@link Tuple}s in range from {@code Limit#offset} to {@code Limit#offset + Limit#count} where score is * between {@code Range#min} and {@code Range#max} from sorted set. - * + * * @param key must not be {@literal null}. * @param range must not be {@literal null}. * @param limit @@ -413,7 +413,7 @@ public interface RedisZSetCommands { /** * Get elements where score is between {@code Range#min} and {@code Range#max} from sorted set ordered from high to * low. - * + * * @param key must not be {@literal null}. * @param range must not be {@literal null}. * @return @@ -549,17 +549,17 @@ public interface RedisZSetCommands { /** * Get the score of element with {@code value} from sorted set with key {@code key}. - * + * * @param key must not be {@literal null}. * @param value the value. * @return - * @see Redis Documentation: ZREM + * @see Redis Documentation: ZSCORE */ Double zScore(byte[] key, byte[] value); /** * Remove elements in range between {@code start} and {@code end} from sorted set with {@code key}. - * + * * @param key must not be {@literal null}. * @param start * @param end diff --git a/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java b/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java index 7f9f10a31..ed186b89e 100644 --- a/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java +++ b/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java @@ -1189,7 +1189,7 @@ public interface StringRedisConnection extends RedisConnection { * @param key must not be {@literal null}. * @param value the value. * @return - * @see Redis Documentation: ZREM + * @see Redis Documentation: ZSCORE * @see RedisZSetCommands#zScore(byte[], byte[]) */ Double zScore(String key, String value); diff --git a/src/main/java/org/springframework/data/redis/core/BoundZSetOperations.java b/src/main/java/org/springframework/data/redis/core/BoundZSetOperations.java index 2e5b0970c..7027cabb8 100644 --- a/src/main/java/org/springframework/data/redis/core/BoundZSetOperations.java +++ b/src/main/java/org/springframework/data/redis/core/BoundZSetOperations.java @@ -25,7 +25,7 @@ import org.springframework.data.redis.core.ZSetOperations.TypedTuple; /** * ZSet (or SortedSet) operations bound to a certain key. - * + * * @author Costin Leau * @author Christoph Strobl * @author Mark Paluch @@ -202,7 +202,7 @@ public interface BoundZSetOperations extends BoundKeyOperations { * * @param o the value. * @return - * @see Redis Documentation: ZREM + * @see Redis Documentation: ZSCORE */ Double score(Object o); diff --git a/src/main/java/org/springframework/data/redis/core/ReactiveZSetOperations.java b/src/main/java/org/springframework/data/redis/core/ReactiveZSetOperations.java index 9ecd27882..079a7dc82 100644 --- a/src/main/java/org/springframework/data/redis/core/ReactiveZSetOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ReactiveZSetOperations.java @@ -251,7 +251,7 @@ public interface ReactiveZSetOperations { * @param key must not be {@literal null}. * @param o the value. * @return - * @see Redis Documentation: ZREM + * @see Redis Documentation: ZSCORE */ Mono score(K key, Object o); diff --git a/src/main/java/org/springframework/data/redis/core/ZSetOperations.java b/src/main/java/org/springframework/data/redis/core/ZSetOperations.java index 381cddfe2..9634b2837 100644 --- a/src/main/java/org/springframework/data/redis/core/ZSetOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ZSetOperations.java @@ -24,17 +24,18 @@ import org.springframework.data.redis.connection.RedisZSetCommands.Tuple; /** * Redis ZSet/sorted set specific operations. - * + * * @author Costin Leau * @author Christoph Strobl * @author Mark Paluch + * @author Rosty Kerei */ public interface ZSetOperations { /** * Typed ZSet tuple. */ - public interface TypedTuple extends Comparable> { + interface TypedTuple extends Comparable> { V getValue(); Double getScore(); @@ -361,6 +362,7 @@ public interface ZSetOperations { * @param key * @param options * @return + * @see Redis Documentation: ZSCAN * @since 1.4 */ Cursor> scan(K key, ScanOptions options);