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

Method of

src/main/java/org/apache/commons/lang3/Range.java:168–170  ·  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

166 * @since 3.13.0
167 */
168 public static <T extends Comparable<? super T>> Range<T> of(final T fromInclusive, final T toInclusive) {
169 return of(fromInclusive, toInclusive, null);
170 }
171
172 /**
173 * Creates a range with the specified minimum and maximum values (both inclusive).

Callers 15

testContainsRangeMethod · 0.95
testIntersectionWithMethod · 0.95
testIsAfterRangeMethod · 0.95
testIsBeforeRangeMethod · 0.95
testToStringMethod · 0.95
testContainsRangeMethod · 0.95
testIntersectionWithMethod · 0.95
testIsAfterRangeMethod · 0.95
testIsBeforeRangeMethod · 0.95

Calls

no outgoing calls

Tested by 15

testContainsRangeMethod · 0.76
testIntersectionWithMethod · 0.76
testIsAfterRangeMethod · 0.76
testIsBeforeRangeMethod · 0.76
testToStringMethod · 0.76
testContainsRangeMethod · 0.76
testIntersectionWithMethod · 0.76
testIsAfterRangeMethod · 0.76
testIsBeforeRangeMethod · 0.76