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

Method isBefore

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

Checks whether this range is before the specified element. @param element the element to check for, null returns false. @return true if this range is entirely before the specified element.

(final T element)

Source from the content-addressed store, hash-verified

453 * @return true if this range is entirely before the specified element.
454 */
455 public boolean isBefore(final T element) {
456 if (element == null) {
457 return false;
458 }
459 return comparator.compare(element, maximum) > 0;
460 }
461
462 /**
463 * Checks whether this range is completely before the specified range.

Callers 9

elementCompareToMethod · 0.95
fitMethod · 0.95
isBeforeRangeMethod · 0.95
testIsBeforeMethod · 0.80
testIsBeforeMethod · 0.80
testIsBeforeMethod · 0.80
testIsBeforeMethod · 0.80
testStopInstantSimpleMethod · 0.80
testSuspendMethod · 0.80

Calls 1

compareMethod · 0.45

Tested by 6

testIsBeforeMethod · 0.64
testIsBeforeMethod · 0.64
testIsBeforeMethod · 0.64
testIsBeforeMethod · 0.64
testStopInstantSimpleMethod · 0.64
testSuspendMethod · 0.64