DATACMNS-1733 - Fix Javadoc for Range factory methods.

Range.open(…) is now correctly documented with exclusive bounds.
This commit is contained in:
Mark Paluch
2020-05-27 10:15:03 +02:00
parent addeb858e1
commit 0dcbc94060

View File

@@ -72,7 +72,7 @@ public 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}.
@@ -168,6 +168,7 @@ public 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);