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

Method ceilingKey

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

Source from the content-addressed store, hash-verified

819 }
820
821 @Override
822 public K ceilingKey(K key) {
823 if(key==null) throw new NullPointerException();
824 if(tooHigh(key)) return null;
825
826 if(tooLow(key)){
827 return firstKey2();
828 }
829
830 K ret = m.ceilingKey(key);
831 if(ret!=null && tooHigh(ret)) return null;
832 return ret;
833 }
834
835 @Override
836 public Entry<K, V> higherEntry(K key) {

Callers 10

testCeilingKeyMethod · 0.45
testCeilingKeyMethod · 0.45
test_lower_nullMethod · 0.45
test_lowerMethod · 0.45
testCeilingKeyMethod · 0.45
checkMethod · 0.45
testCeilingKeyMethod · 0.45
checkMethod · 0.45
ceilingMethod · 0.45

Calls 3

tooHighMethod · 0.95
tooLowMethod · 0.95
firstKey2Method · 0.95

Tested by 9

testCeilingKeyMethod · 0.36
testCeilingKeyMethod · 0.36
test_lower_nullMethod · 0.36
test_lowerMethod · 0.36
testCeilingKeyMethod · 0.36
checkMethod · 0.36
testCeilingKeyMethod · 0.36
checkMethod · 0.36