2.17.2: 2011-06-17

net.sf.basedb.core
Class ItemResultList.ResultListIterator<T extends BasicItem>

java.lang.Object
  extended by net.sf.basedb.core.ItemResultList.ResultListIterator<T>
All Implemented Interfaces:
Iterator<T>
Enclosing class:
ItemResultList<I extends BasicItem>

private class ItemResultList.ResultListIterator<T extends BasicItem>
extends Object
implements Iterator<T>

Inner class to implement the iterator returned by the ItemResultList.iterator() method.


Field Summary
private  Class<T> itemClass
           
private  Iterator<? extends BasicData> iterator
           
 
Constructor Summary
private ItemResultList.ResultListIterator(Iterator<? extends BasicData> iterator, Class<T> itemClass)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
          This operation is not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

private final Iterator<? extends BasicData> iterator

itemClass

private final Class<T extends BasicItem> itemClass
Constructor Detail

ItemResultList.ResultListIterator

private ItemResultList.ResultListIterator(Iterator<? extends BasicData> iterator,
                                          Class<T> itemClass)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T extends BasicItem>

next

public T next()
Specified by:
next in interface Iterator<T extends BasicItem>

remove

public void remove()
This operation is not supported.

Specified by:
remove in interface Iterator<T extends BasicItem>
Throws:
UnsupportedOperationException - Always

2.17.2: 2011-06-17