Browse Source

DATACMNS-1733 - Fix Javadoc for Range factory methods.

Range.open(…) is now correctly documented with exclusive bounds.
pull/453/head
Mark Paluch 6 years ago
parent
commit
644b65eb71
No known key found for this signature in database
GPG Key ID: 51A00FA751B91849
  1. 3
      src/main/java/org/springframework/data/domain/Range.java

3
src/main/java/org/springframework/data/domain/Range.java

@ -75,7 +75,7 @@ public final class Range<T extends Comparable<T>> { @@ -75,7 +75,7 @@ public final class Range<T extends Comparable<T>> {
}
/**
* Creates a new {@link Range} with inclusive bounds for both values.
* Creates a new {@link Range} with exclusive bounds for both values.
*
* @param <T>
* @param from must not be {@literal null}.
@ -171,6 +171,7 @@ public final class Range<T extends Comparable<T>> { @@ -171,6 +171,7 @@ public final class Range<T extends Comparable<T>> {
* @param <T>
* @param value must not be {@literal null}.
* @return
* @see Range#closed(Comparable, Comparable)
*/
public static <T extends Comparable<T>> Range<T> just(T value) {
return Range.closed(value, value);

Loading…
Cancel
Save