MCPcopy Index your code
hub / github.com/jankotek/mapdb / lowerKey

Method lowerKey

src/main/java/org/mapdb/BTreeMapJava.java:768–778  ·  view source on GitHub ↗
(K key)

Source from the content-addressed store, hash-verified

766 }
767
768 @Override
769 public K lowerKey(K key) {
770 if(key==null)throw new NullPointerException();
771 if(tooLow(key))return null;
772
773 if(tooHigh(key))
774 return lastKey2();
775
776 K r = m.lowerKey(key);
777 return r!=null && !tooLow(r) ? r :null;
778 }
779
780 @Override
781 public Map.Entry<K,V> floorEntry(K key) {

Callers 10

testLowerKeyMethod · 0.45
testLowerKeyMethod · 0.45
test_lower_nullMethod · 0.45
test_lowerMethod · 0.45
testLowerKeyMethod · 0.45
checkMethod · 0.45
testLowerKeyMethod · 0.45
checkMethod · 0.45
lowerMethod · 0.45

Calls 3

tooLowMethod · 0.95
tooHighMethod · 0.95
lastKey2Method · 0.95

Tested by 9

testLowerKeyMethod · 0.36
testLowerKeyMethod · 0.36
test_lower_nullMethod · 0.36
test_lowerMethod · 0.36
testLowerKeyMethod · 0.36
checkMethod · 0.36
testLowerKeyMethod · 0.36
checkMethod · 0.36