MCPcopy Create free account
hub / github.com/ReadyTalk/avian / descendingIterator

Method descendingIterator

classpath/java/util/ArrayDeque.java:284–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282 }
283
284 public Iterator<T> descendingIterator() {
285 return new GenericIterator() {
286 @Override
287 protected int getArrayIndex() {
288 int result = (endIndex - currentIndex) % dataArray.length;
289 return result;
290 }
291 };
292 }
293
294 private abstract class GenericIterator implements Iterator<T> {
295 protected int expectedModCount = modCount;

Callers 4

iterateTestMethod · 0.95
iteratorRemoveTestMethod · 0.95
iteratorNoElementFailMethod · 0.95
removeMethod · 0.95

Calls

no outgoing calls

Tested by 3

iterateTestMethod · 0.76
iteratorRemoveTestMethod · 0.76
iteratorNoElementFailMethod · 0.76