MCPcopy Create free account
hub / github.com/LFYSec/MScan / poll

Method poll

src/main/java/pascal/taie/util/collection/SetQueue.java:60–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 @Override
61 public E poll() {
62 Iterator<E> it = set.iterator();
63 if (it.hasNext()) {
64 E e = it.next();
65 it.remove();
66 return e;
67 } else {
68 return null;
69 }
70 }
71
72 @Override
73 public E peek() {

Callers 15

testMethod · 0.95
testSerializableMethod · 0.95
breadthFirstMethod · 0.80
breadthFirstMaxIterMethod · 0.80
doSolveMethod · 0.80
buildCallGraphMethod · 0.80
reportTopMethod · 0.80
propagateExceptionsMethod · 0.80
buildCompleteMethod · 0.80
buildMethod · 0.80
getFlowNodesMethod · 0.80
computeStatesMethod · 0.80

Calls 4

iteratorMethod · 0.65
hasNextMethod · 0.65
nextMethod · 0.65
removeMethod · 0.65

Tested by 2

testMethod · 0.76
testSerializableMethod · 0.76