2.17.2: 2011-06-17

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

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

private class ItemResultList.ResultListListIterator<T extends BasicItem>
extends Object
implements ListIterator<T>

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


Field Summary
private  Class<T> itemClass
           
private  ListIterator<? extends BasicData> iterator
           
 
Constructor Summary
private ItemResultList.ResultListListIterator(ListIterator<? extends BasicData> iterator, Class<T> itemClass)
           
 
Method Summary
 void add(T o)
          This operation is not supported.
 boolean hasNext()
           
 boolean hasPrevious()
           
 T next()
           
 int nextIndex()
           
 T previous()
           
 int previousIndex()
           
 void remove()
          This operation is not supported.
 void set(T o)
          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 ListIterator<? extends BasicData> iterator

itemClass

private final Class<T extends BasicItem> itemClass
Constructor Detail

ItemResultList.ResultListListIterator

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

add

public void add(T o)
This operation is not supported.

Specified by:
add in interface ListIterator<T extends BasicItem>
Throws:
UnsupportedOperationException - Always

hasNext

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

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator<T extends BasicItem>

next

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

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator<T extends BasicItem>

previous

public T previous()
Specified by:
previous in interface ListIterator<T extends BasicItem>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator<T extends BasicItem>

remove

public void remove()
This operation is not supported.

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

set

public void set(T o)
This operation is not supported.

Specified by:
set in interface ListIterator<T extends BasicItem>
Throws:
UnsupportedOperationException - Always

2.17.2: 2011-06-17