- All Implemented Interfaces:
- Iterable<E>, Iterator<E>
public class IterableIterator<E>
extends Object
implements Iterator<E>, Iterable<E>
This cures a pet peeve of mine: that you can't use an Iterator directly in
Java 5's foreach construct. Well, this one you can, dammit.
- Author:
- Bill MacCartney