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

Method isBeforeRange

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

Checks whether this range is completely before the specified range. This method may fail if the ranges have two different comparators or element types. @param otherRange the range to check, null returns false. @return true if this range is completely before the specified range. @throws Run

(final Range<T> otherRange)

Source from the content-addressed store, hash-verified

469 * @throws RuntimeException if ranges cannot be compared.
470 */
471 public boolean isBeforeRange(final Range<T> otherRange) {
472 if (otherRange == null) {
473 return false;
474 }
475 return isBefore(otherRange.minimum);
476 }
477
478 /**
479 * Checks whether this range ends with the specified element.

Callers 7

testIsBeforeRangeMethod · 0.80
testIsBeforeRangeMethod · 0.80
testIsBeforeRangeMethod · 0.80
testIsBeforeRangeMethod · 0.80

Calls 1

isBeforeMethod · 0.95

Tested by 7

testIsBeforeRangeMethod · 0.64
testIsBeforeRangeMethod · 0.64
testIsBeforeRangeMethod · 0.64
testIsBeforeRangeMethod · 0.64