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

Method floorKey

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

Source from the content-addressed store, hash-verified

792 }
793
794 @Override
795 public K floorKey(K key) {
796 if(key==null) throw new NullPointerException();
797 if(tooLow(key)) return null;
798
799 if(tooHigh(key)){
800 return lastKey2();
801 }
802
803 K ret = m.floorKey(key);
804 if(ret!=null && tooLow(ret)) return null;
805 return ret; }
806
807 @Override
808 public Map.Entry<K,V> ceilingEntry(K key) {

Callers 10

testFloorKeyMethod · 0.45
testFloorKeyMethod · 0.45
test_lower_nullMethod · 0.45
test_lowerMethod · 0.45
testFloorKeyMethod · 0.45
checkMethod · 0.45
testFloorKeyMethod · 0.45
checkMethod · 0.45
floorMethod · 0.45

Calls 3

tooLowMethod · 0.95
tooHighMethod · 0.95
lastKey2Method · 0.95

Tested by 9

testFloorKeyMethod · 0.36
testFloorKeyMethod · 0.36
test_lower_nullMethod · 0.36
test_lowerMethod · 0.36
testFloorKeyMethod · 0.36
checkMethod · 0.36
testFloorKeyMethod · 0.36
checkMethod · 0.36