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
           
 
Constructor Summary
IteratorOfFreezables(java.util.Iterator iteratorOfFreezables)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 Freezable nextFreezable()
          Returns the next Freezable in the interator.
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

it

private java.util.Iterator it
Constructor Detail

IteratorOfFreezables

public IteratorOfFreezables(java.util.Iterator iteratorOfFreezables)
Method Detail

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