org.jfree.util
public class ReadOnlyIterator extends Object implements Iterator
| Constructor Summary | |
|---|---|
| ReadOnlyIterator(Iterator it)
Creates a new read-only iterator for the given iterator.
| |
| Method Summary | |
|---|---|
| boolean | hasNext()
Returns true if the iteration has more elements. |
| Object | next()
Returns the next element in the iteration.
|
| void | remove()
Throws UnsupportedOperationException. |
Parameters: it the iterator.
Returns: true if the iterator has more elements.
Returns: the next element in the iteration.
UnsupportedOperationException.