MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / iterator

Method iterator

LabEnv/02Lab/Deque.java:97–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96 // return an iterator over items in order from front to back
97 public Iterator<Item> iterator() {
98 return new DequeIterator(first);
99 }
100
101 private class DequeIterator implements Iterator<Item> {
102 private Node current;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected