net.walend.lyophil.collection
Class IteratorOfFreezables
java.lang.Object
|
+--net.walend.lyophil.collection.IteratorOfFreezables
- All Implemented Interfaces:
- FreezableIterator, java.util.Iterator
- public class IteratorOfFreezables
- extends java.lang.Object
- implements FreezableIterator
An implementation of FreezableIterator that uses an Iterator of the Freezables.
It isn't Freezable itself.
- Since:
- 20010726
- Author:
- David Walend
Field Summary |
private java.util.Iterator |
it
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
it
private java.util.Iterator it
IteratorOfFreezables
public IteratorOfFreezables(java.util.Iterator iteratorOfFreezables)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
nextFreezable
public Freezable nextFreezable()
- Returns the next Freezable in the interator.
- Specified by:
nextFreezable
in interface FreezableIterator
- Throws:
NoSuchElementException
- if the iterator has no more elements.
Copyright (c) 2000, 2001, David Walend