Creates a range with the specified minimum and maximum values (both inclusive). The range uses the natural ordering of the elements to determine where values lie in the range. The arguments may be passed in the order (min, max) or (max, min). The getMinimum and getMaximum methods will re
(final T fromInclusive, final T toInclusive)
| 81 | * @deprecated Use {@link #of(Comparable, Comparable)}. |
| 82 | */ |
| 83 | @Deprecated |
| 84 | public static <T extends Comparable<? super T>> Range<T> between(final T fromInclusive, final T toInclusive) { |
| 85 | return of(fromInclusive, toInclusive, null); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Creates a range with the specified minimum and maximum values (both inclusive). |