Class ReadOnlyIterator
java.lang.Object
org.jfree.util.ReadOnlyIterator
- All Implemented Interfaces:
Iterator
Protects an given iterator by preventing calls to remove().
- Author:
- Thomas Morgner
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new read-only iterator for the given iterator. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
ReadOnlyIterator
Creates a new read-only iterator for the given iterator.- Parameters:
it- the iterator.
-
-
Method Details
-
hasNext
-
next
-
remove
-