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

Method clear

output/java_guava/1.4.19/Iterators.java:1022–1028  ·  view source on GitHub ↗

Clears the iterator using its remove method.

(Iterator<?> iterator)

Source from the content-addressed store, hash-verified

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

Callers 9

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

Calls 4

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

Tested by

no test coverage detected