net.walend.lyophil.collection
Class FreezerIterator

java.lang.Object
  |
  +--net.walend.lyophil.collection.FreezerIterator
All Implemented Interfaces:
FreezableIterator, java.util.Iterator

public class FreezerIterator
extends java.lang.Object
implements FreezableIterator

An implementation of FreezableIterator that grabs the Freezables fresh out of the Freezer.

It isn't Freezable itself.

Since:
20010105
Author:
David Walend

Field Summary
private  java.util.Iterator it
           
 
Constructor Summary
FreezerIterator(java.util.Iterator idIterator)
           
 
Method Summary
protected  Freezable getFreezable(java.io.Serializable id)
           
protected  Freezer getFreezer()
           
 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

FreezerIterator

public FreezerIterator(java.util.Iterator idIterator)
Method Detail

getFreezer

protected Freezer getFreezer()

getFreezable

protected Freezable getFreezable(java.io.Serializable id)

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