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

Method checkLowerBound

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

Source from the content-addressed store, hash-verified

445 }
446
447 private boolean checkLowerBound(K key) {
448 if (hasStart) {
449 Comparator<? super K> cmp = backingMap.comparator;
450 if (cmp == null) {
451 return (toComparable(key).compareTo(startKey) >= 0);
452 }
453 return (cmp.compare(key, startKey) >= 0);
454 }
455 return true;
456 }
457
458 public Comparator<? super K> comparator() {
459 return backingMap.comparator();

Callers 2

setLastKeyMethod · 0.95
lastKeyMethod · 0.95

Calls 3

toComparableMethod · 0.80
compareToMethod · 0.65
compareMethod · 0.65

Tested by

no test coverage detected