From ff951629438f42dc000596ce1eb18c7ddbdfe3f8 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Fri, 25 Aug 2017 12:16:37 +0200 Subject: [PATCH] DATAREDIS-680 - Polishing. Add author tag. Adopt javadoc fix in other affected operations and connection interfaces. Original pull request: #265. --- .../redis/connection/RedisZSetCommands.java | 24 +++++++++---------- .../connection/StringRedisConnection.java | 2 +- .../data/redis/core/BoundZSetOperations.java | 4 ++-- .../data/redis/core/ZSetOperations.java | 6 +++-- 4 files changed, 19 insertions(+), 17 deletions(-) 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 7f872dd34..b656fc429 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 */ @@ -302,7 +302,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 @@ -353,7 +353,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 @@ -399,7 +399,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 @@ -519,17 +519,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 e9f6208db..74466667b 100644 --- a/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java +++ b/src/main/java/org/springframework/data/redis/connection/StringRedisConnection.java @@ -1177,7 +1177,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/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);