MCPcopy Create free account
hub / github.com/apache/commons-lang / between

Method between

src/main/java/org/apache/commons/lang3/Range.java:83–86  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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).

Calls 1

ofMethod · 0.95