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

Method ceilingEntry

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

Source from the content-addressed store, hash-verified

805 return ret; }
806
807 @Override
808 public Map.Entry<K,V> ceilingEntry(K key) {
809 if(key==null) throw new NullPointerException();
810 if(tooHigh(key)) return null;
811
812 if(tooLow(key)){
813 return firstEntry();
814 }
815
816 Entry<K,V> ret = m.ceilingEntry(key);
817 if(ret!=null && tooHigh(ret.getKey())) return null;
818 return ret;
819 }
820
821 @Override
822 public K ceilingKey(K key) {

Callers 12

testCeilingEntryMethod · 0.45
testCeilingEntryMethod · 0.45
testCeilingEntryMethod · 0.45
testEntryImmutabilityMethod · 0.45
testCeilingEntryMethod · 0.45
testCeilingEntryMethod · 0.45
testCeilingEntryMethod · 0.45
floorEntryMethod · 0.45

Calls 4

tooHighMethod · 0.95
tooLowMethod · 0.95
firstEntryMethod · 0.95
getKeyMethod · 0.80

Tested by 11

testCeilingEntryMethod · 0.36
testCeilingEntryMethod · 0.36
testCeilingEntryMethod · 0.36
testEntryImmutabilityMethod · 0.36
testCeilingEntryMethod · 0.36
testCeilingEntryMethod · 0.36
testCeilingEntryMethod · 0.36