diff --git a/src/main/java/org/springframework/data/redis/core/DefaultZSetOperations.java b/src/main/java/org/springframework/data/redis/core/DefaultZSetOperations.java index 340ed17405..be4573e890 100644 --- a/src/main/java/org/springframework/data/redis/core/DefaultZSetOperations.java +++ b/src/main/java/org/springframework/data/redis/core/DefaultZSetOperations.java @@ -45,6 +45,7 @@ * @author Andrey Shlykov * @author Shyngys Sapraliyev * @author John Blum + * @author Gunha Hwang */ @NullUnmarked class DefaultZSetOperations extends AbstractOperations implements ZSetOperations { @@ -349,10 +350,10 @@ public Set> reverseRangeByScoreWithScores(@NonNull K key, double m } @Override - public Long rank(@NonNull K key, @NonNull Object o) { + public Long rank(@NonNull K key, @NonNull Object value) { byte[] rawKey = rawKey(key); - byte[] rawValue = rawValue(o); + byte[] rawValue = rawValue(value); return execute(connection -> { Long zRank = connection.zRank(rawKey, rawValue); @@ -361,10 +362,10 @@ public Long rank(@NonNull K key, @NonNull Object o) { } @Override - public Long reverseRank(@NonNull K key, @NonNull Object o) { + public Long reverseRank(@NonNull K key, @NonNull Object value) { byte[] rawKey = rawKey(key); - byte[] rawValue = rawValue(o); + byte[] rawValue = rawValue(value); return execute(connection -> { Long zRank = connection.zRevRank(rawKey, rawValue); @@ -406,10 +407,10 @@ public Long removeRangeByScore(@NonNull K key, double min, double max) { } @Override - public Double score(@NonNull K key, Object o) { + public Double score(@NonNull K key, Object value) { byte[] rawKey = rawKey(key); - byte[] rawValue = rawValue(o); + byte[] rawValue = rawValue(value); return execute(connection -> connection.zScore(rawKey, rawValue)); } 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 290abb0677..c5a640bb87 100644 --- a/src/main/java/org/springframework/data/redis/core/ZSetOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ZSetOperations.java @@ -43,6 +43,7 @@ * @author Wongoo (望哥) * @author Andrey Shlykov * @author Shyngys Sapraliyev + * @author Gunha Hwang */ @NullUnmarked public interface ZSetOperations { @@ -210,21 +211,21 @@ static TypedTuple of(@NonNull V value, @Nullable Double score) { * Determine the index of element with {@code value} in a sorted set. * * @param key must not be {@literal null}. - * @param o the value. + * @param value the value. * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZRANK */ - Long rank(@NonNull K key, @NonNull Object o); + Long rank(@NonNull K key, @NonNull Object value); /** * Determine the index of element with {@code value} in a sorted set when scored high to low. * * @param key must not be {@literal null}. - * @param o the value. + * @param value the value. * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZREVRANK */ - Long reverseRank(@NonNull K key, @NonNull Object o); + Long reverseRank(@NonNull K key, @NonNull Object value); /** * Get elements between {@code start} and {@code end} from sorted set. @@ -525,11 +526,11 @@ default TypedTuple popMax(@NonNull K key, @NonNull Duration timeout) { * Get the score of element with {@code value} from sorted set with key {@code key}. * * @param key must not be {@literal null}. - * @param o the value. + * @param value the value. * @return {@literal null} when used in pipeline / transaction. * @see Redis Documentation: ZSCORE */ - Double score(@NonNull K key, Object o); + Double score(@NonNull K key, Object value); /** * Get the scores of elements with {@code values} from sorted set with key {@code key}.