Pages

Descending Iterator and Adapter pattern

There is a descending iterator in linked list implementation in Java SDK. A humble private class in LinkedList. A good example of adapter.




calls up


public Iterator<E> descendingIterator() {
return new DescendingIterator();
}


No comments:

Post a Comment