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

Method floorEntry

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

Source from the content-addressed store, hash-verified

778 }
779
780 @Override
781 public Map.Entry<K,V> floorEntry(K key) {
782 if(key==null) throw new NullPointerException();
783 if(tooLow(key)) return null;
784
785 if(tooHigh(key)){
786 return lastEntry();
787 }
788
789 Entry<K,V> ret = m.floorEntry(key);
790 if(ret!=null && tooLow(ret.getKey())) return null;
791 return ret;
792 }
793
794 @Override
795 public K floorKey(K key) {

Callers 12

testFloorEntryMethod · 0.45
testFloorEntryMethod · 0.45
testFloorEntryMethod · 0.45
testEntryImmutabilityMethod · 0.45
testFloorEntryMethod · 0.45
testFloorEntryMethod · 0.45
testFloorEntryMethod · 0.45
ceilingEntryMethod · 0.45

Calls 4

tooLowMethod · 0.95
tooHighMethod · 0.95
lastEntryMethod · 0.95
getKeyMethod · 0.80

Tested by 11

testFloorEntryMethod · 0.36
testFloorEntryMethod · 0.36
testFloorEntryMethod · 0.36
testEntryImmutabilityMethod · 0.36
testFloorEntryMethod · 0.36
testFloorEntryMethod · 0.36
testFloorEntryMethod · 0.36