edu.rice.cs.plt.iter
Class ReadOnlyIterator<T>
java.lang.Object
edu.rice.cs.plt.iter.ReadOnlyIterator<T>
- All Implemented Interfaces:
- Iterator<T>
- Direct Known Subclasses:
- CartesianIterator, DiagonalCartesianIterator, FilteredIterator, ImmutableIterator, IndexedIterator, NoDuplicatesIterator, PermutationIterator, SequenceIterator, SingletonIterator, SkipLastIterator
public abstract class ReadOnlyIterator<T>
- extends Object
- implements Iterator<T>
An abstract implementation of Iterator that implements Iterator.remove()
by throwing an UnsupportedOperationException. (This simplifies the declaration
of anonymous iterators.)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyIterator
public ReadOnlyIterator()
remove
public void remove()
- Specified by:
remove in interface Iterator<T>
- Throws:
UnsupportedOperationException