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

Method pollFirst

src/main/java/org/mapdb/BTreeMapJava.java:439–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

437 public E last() { return m.lastKey(); }
438
439 @Override
440 public E pollFirst() {
441 while(true){
442 E e = m.firstKey2();
443 if(e==null || m.remove(e)!=null){
444 return e;
445 }
446 }
447 }
448
449 @Override
450 public E pollLast() {

Callers 15

testEmptyMethod · 0.80
testSizeMethod · 0.80
testAddAll5Method · 0.80
testPollFirstMethod · 0.80
testPollLastMethod · 0.80
testContainsMethod · 0.80
testRetainAllMethod · 0.80
testRemoveAllMethod · 0.80
testToArrayMethod · 0.80
testToArray2Method · 0.80
testEmptyMethod · 0.80
testAddAll5Method · 0.80

Calls 2

firstKey2Method · 0.65
removeMethod · 0.45

Tested by 15

testEmptyMethod · 0.64
testSizeMethod · 0.64
testAddAll5Method · 0.64
testPollFirstMethod · 0.64
testPollLastMethod · 0.64
testContainsMethod · 0.64
testRetainAllMethod · 0.64
testRemoveAllMethod · 0.64
testToArrayMethod · 0.64
testToArray2Method · 0.64
testEmptyMethod · 0.64
testAddAll5Method · 0.64