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 fbe51ef1bb
commit 644b65eb71

View File

@@ -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>> {
* @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);