MCPcopy Create free account
hub / github.com/antlr/codebuff / clear

Method clear

output/java_guava/1.4.17/Iterators.java:1021–1027  ·  view source on GitHub ↗

Clears the iterator using its remove method.

(Iterator<?> iterator)

Source from the content-addressed store, hash-verified

1019
1020
1021 static void clear(Iterator<?> iterator) {
1022 checkNotNull(iterator);
1023 while (iterator.hasNext()) {
1024 iterator.next();
1025 iterator.remove();
1026 }
1027 }
1028
1029 /**
1030 * Returns an iterator containing the elements of {@code array} in order. The

Callers 11

clearMethod · 0.95
standardClearMethod · 0.95
removeAllNodesMethod · 0.95
standardClearMethod · 0.95
clearMethod · 0.95
clearMethod · 0.95
clearMethod · 0.95
clearMethod · 0.95
standardClearMethod · 0.95
clearMethod · 0.95
clearMethod · 0.95

Calls 4

nextMethod · 0.65
removeMethod · 0.65
checkNotNullMethod · 0.45
hasNextMethod · 0.45

Tested by

no test coverage detected