DATAREDIS-614 - Polishing.
Remove whitespaces and update tests to use non deprecated API. Original Pull Request: #274
This commit is contained in:
@@ -38,7 +38,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Add {@link Point} with given member {@literal name} to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param point must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
@@ -49,7 +49,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Add {@link Point} with given member {@literal name} to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param point must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
@@ -63,7 +63,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Add {@link GeoLocation} to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param location must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
* @since 2.0
|
||||
@@ -73,7 +73,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Add {@link GeoLocation} to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param location must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
* @see <a href="http://redis.io/commands/geoadd">Redis Documentation: GEOADD</a>
|
||||
@@ -86,7 +86,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Add {@link Map} of member / {@link Point} pairs to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param memberCoordinateMap must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
* @since 2.0
|
||||
@@ -96,7 +96,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Add {@link Map} of member / {@link Point} pairs to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param memberCoordinateMap must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
* @see <a href="http://redis.io/commands/geoadd">Redis Documentation: GEOADD</a>
|
||||
@@ -109,7 +109,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Add {@link GeoLocation}s to {@literal key}
|
||||
*
|
||||
*
|
||||
* @param locations must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
* @since 2.0
|
||||
@@ -119,7 +119,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Add {@link GeoLocation}s to {@literal key}
|
||||
*
|
||||
*
|
||||
* @param locations must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
* @see <a href="http://redis.io/commands/geoadd">Redis Documentation: GEOADD</a>
|
||||
@@ -132,7 +132,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@link Distance} between {@literal member1} and {@literal member2}.
|
||||
*
|
||||
*
|
||||
* @param member1 must not be {@literal null}.
|
||||
* @param member2 must not be {@literal null}.
|
||||
* @return can be {@literal null}.
|
||||
@@ -143,7 +143,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@link Distance} between {@literal member1} and {@literal member2}.
|
||||
*
|
||||
*
|
||||
* @param member1 must not be {@literal null}.
|
||||
* @param member2 must not be {@literal null}.
|
||||
* @return can be {@literal null}.
|
||||
@@ -157,7 +157,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@link Distance} between {@literal member1} and {@literal member2} in the given {@link Metric}.
|
||||
*
|
||||
*
|
||||
* @param member1 must not be {@literal null}.
|
||||
* @param member2 must not be {@literal null}.
|
||||
* @param metric must not be {@literal null}.
|
||||
@@ -169,7 +169,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@link Distance} between {@literal member1} and {@literal member2} in the given {@link Metric}.
|
||||
*
|
||||
*
|
||||
* @param member1 must not be {@literal null}.
|
||||
* @param member2 must not be {@literal null}.
|
||||
* @param metric must not be {@literal null}.
|
||||
@@ -184,7 +184,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get Geohash representation of the position for one or more {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param members must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
* @since 2.0
|
||||
@@ -194,7 +194,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get Geohash representation of the position for one or more {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param members must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
* @see <a href="http://redis.io/commands/geohash">Redis Documentation: GEOHASH</a>
|
||||
@@ -207,7 +207,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@link Point} representation of positions for one or more {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param members must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
* @since 2.0
|
||||
@@ -217,7 +217,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@link Point} representation of positions for one or more {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param members must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
* @see <a href="http://redis.io/commands/geopos">Redis Documentation: GEOPOS</a>
|
||||
@@ -230,7 +230,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@literal member}s within the boundaries of a given {@link Circle}.
|
||||
*
|
||||
*
|
||||
* @param within must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
* @since 2.0
|
||||
@@ -240,7 +240,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@literal member}s within the boundaries of a given {@link Circle}.
|
||||
*
|
||||
*
|
||||
* @param within must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
* @see <a href="http://redis.io/commands/georadius">Redis Documentation: GEORADIUS</a>
|
||||
@@ -253,7 +253,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@literal member}s within the boundaries of a given {@link Circle} applying {@link GeoRadiusCommandArgs}.
|
||||
*
|
||||
*
|
||||
* @param within must not be {@literal null}.
|
||||
* @param args must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -264,7 +264,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Get the {@literal member}s within the boundaries of a given {@link Circle} applying {@link GeoRadiusCommandArgs}.
|
||||
*
|
||||
*
|
||||
* @param within must not be {@literal null}.
|
||||
* @param args must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -279,7 +279,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius}.
|
||||
*
|
||||
*
|
||||
* @param member must not be {@literal null}.
|
||||
* @param radius
|
||||
* @return never {@literal null}.
|
||||
@@ -291,7 +291,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius}.
|
||||
*
|
||||
*
|
||||
* @param member must not be {@literal null}.
|
||||
* @param radius
|
||||
* @return never {@literal null}.
|
||||
@@ -306,7 +306,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius} applying {@link Metric}.
|
||||
*
|
||||
*
|
||||
* @param member must not be {@literal null}.
|
||||
* @param distance must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -318,7 +318,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius} applying {@link Metric}.
|
||||
*
|
||||
*
|
||||
* @param member must not be {@literal null}.
|
||||
* @param distance must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -333,7 +333,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius} applying {@link Metric} and {@link GeoRadiusCommandArgs}.
|
||||
*
|
||||
*
|
||||
* @param member must not be {@literal null}.
|
||||
* @param distance must not be {@literal null}.
|
||||
* @param args must not be {@literal null}.
|
||||
@@ -346,7 +346,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius} applying {@link Metric} and {@link GeoRadiusCommandArgs}.
|
||||
*
|
||||
*
|
||||
* @param member must not be {@literal null}.
|
||||
* @param distance must not be {@literal null}.
|
||||
* @param args must not be {@literal null}.
|
||||
@@ -361,7 +361,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Remove the {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param members must not be {@literal null}.
|
||||
* @return Number of elements removed.
|
||||
* @since 2.0
|
||||
@@ -370,7 +370,7 @@ public interface BoundGeoOperations<K, M> extends BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Remove the {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param members must not be {@literal null}.
|
||||
* @return Number of elements removed.
|
||||
* @deprecated since 2.0, use {@link #remove(Object[])}.
|
||||
|
||||
@@ -39,7 +39,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Add {@link Point} with given member {@literal name} to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param point must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
@@ -51,7 +51,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Add {@link Point} with given member {@literal name} to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param point must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
@@ -66,7 +66,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Add {@link GeoLocation} to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param location must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
@@ -77,7 +77,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Add {@link GeoLocation} to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param location must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
@@ -91,7 +91,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Add {@link Map} of member / {@link Point} pairs to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param memberCoordinateMap must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
@@ -102,7 +102,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Add {@link Map} of member / {@link Point} pairs to {@literal key}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param memberCoordinateMap must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
@@ -116,7 +116,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Add {@link GeoLocation}s to {@literal key}
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param locations must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
@@ -127,7 +127,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Add {@link GeoLocation}s to {@literal key}
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param locations must not be {@literal null}.
|
||||
* @return Number of elements added.
|
||||
@@ -141,7 +141,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@link Distance} between {@literal member1} and {@literal member2}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member1 must not be {@literal null}.
|
||||
* @param member2 must not be {@literal null}.
|
||||
@@ -153,7 +153,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@link Distance} between {@literal member1} and {@literal member2}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member1 must not be {@literal null}.
|
||||
* @param member2 must not be {@literal null}.
|
||||
@@ -168,7 +168,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@link Distance} between {@literal member1} and {@literal member2} in the given {@link Metric}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member1 must not be {@literal null}.
|
||||
* @param member2 must not be {@literal null}.
|
||||
@@ -181,7 +181,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@link Distance} between {@literal member1} and {@literal member2} in the given {@link Metric}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member1 must not be {@literal null}.
|
||||
* @param member2 must not be {@literal null}.
|
||||
@@ -197,7 +197,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get Geohash representation of the position for one or more {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param members must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -208,7 +208,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get Geohash representation of the position for one or more {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param members must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -222,7 +222,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@link Point} representation of positions for one or more {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param members must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -233,7 +233,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@link Point} representation of positions for one or more {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param members must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -247,7 +247,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@literal member}s within the boundaries of a given {@link Circle}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param within must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -258,7 +258,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@literal member}s within the boundaries of a given {@link Circle}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param within must not be {@literal null}.
|
||||
* @return never {@literal null}.
|
||||
@@ -272,7 +272,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@literal member}s within the boundaries of a given {@link Circle} applying {@link GeoRadiusCommandArgs}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param within must not be {@literal null}.
|
||||
* @param args must not be {@literal null}.
|
||||
@@ -284,7 +284,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Get the {@literal member}s within the boundaries of a given {@link Circle} applying {@link GeoRadiusCommandArgs}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param within must not be {@literal null}.
|
||||
* @param args must not be {@literal null}.
|
||||
@@ -300,7 +300,7 @@ public interface GeoOperations<K, M> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
* @param radius
|
||||
@@ -313,7 +313,7 @@ public interface GeoOperations<K, M> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
* @param radius
|
||||
@@ -329,7 +329,7 @@ public interface GeoOperations<K, M> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius} applying {@link Metric}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
* @param distance must not be {@literal null}.
|
||||
@@ -342,7 +342,7 @@ public interface GeoOperations<K, M> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius} applying {@link Metric}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
* @param distance must not be {@literal null}.
|
||||
@@ -358,7 +358,7 @@ public interface GeoOperations<K, M> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius} applying {@link Metric} and {@link GeoRadiusCommandArgs}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
* @param distance must not be {@literal null}.
|
||||
@@ -372,7 +372,7 @@ public interface GeoOperations<K, M> {
|
||||
/**
|
||||
* Get the {@literal member}s within the circle defined by the {@literal members} coordinates and given
|
||||
* {@literal radius} applying {@link Metric} and {@link GeoRadiusCommandArgs}.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param member must not be {@literal null}.
|
||||
* @param distance must not be {@literal null}.
|
||||
@@ -388,7 +388,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Remove the {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param members must not be {@literal null}.
|
||||
* @return Number of elements removed.
|
||||
@@ -398,7 +398,7 @@ public interface GeoOperations<K, M> {
|
||||
|
||||
/**
|
||||
* Remove the {@literal member}s.
|
||||
*
|
||||
*
|
||||
* @param key must not be {@literal null}.
|
||||
* @param members must not be {@literal null}.
|
||||
* @return Number of elements removed.
|
||||
|
||||
Reference in New Issue
Block a user