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

Method iterator

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

Source from the content-addressed store, hash-verified

272 }
273
274 public Iterator<T> iterator() {
275 return new GenericIterator() {
276 @Override
277 protected int getArrayIndex() {
278 int result = (currentIndex + startIndex) % dataArray.length;
279 return result;
280 }
281 };
282 }
283
284 public Iterator<T> descendingIterator() {
285 return new GenericIterator() {

Callers 5

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

Calls

no outgoing calls

Tested by 3

iterateTestMethod · 0.76
iteratorRemoveTestMethod · 0.76
iteratorNoElementFailMethod · 0.76