MCPcopy Create free account
hub / github.com/davidgiven/luje / checkUpperBound

Method checkUpperBound

lib/java/util/TreeMap.java:436–445  ·  view source on GitHub ↗
(K key)

Source from the content-addressed store, hash-verified

434 }
435
436 private boolean checkUpperBound(K key) {
437 if (hasEnd) {
438 Comparator<? super K> cmp = backingMap.comparator;
439 if (cmp == null) {
440 return (toComparable(key).compareTo(endKey) < 0);
441 }
442 return (cmp.compare(key, endKey) < 0);
443 }
444 return true;
445 }
446
447 private boolean checkLowerBound(K key) {
448 if (hasStart) {

Callers 2

setFirstKeyMethod · 0.95
firstKeyMethod · 0.95

Calls 3

toComparableMethod · 0.80
compareToMethod · 0.65
compareMethod · 0.65

Tested by

no test coverage detected