org.omnaest.utils.structure.table.concrete.internal.iterator
Class TableRowListIterator<E>

java.lang.Object
  extended by org.omnaest.utils.structure.table.concrete.internal.iterator.TableRowListIterator<E>
Type Parameters:
E -
All Implemented Interfaces:
Iterator<Table.Row<E>>, ListIterator<Table.Row<E>>

public class TableRowListIterator<E>
extends Object
implements ListIterator<Table.Row<E>>

Author:
Omnaest
See Also:
Table, ListIterator

Nested Class Summary
protected static class TableRowListIterator.TableToListIteratorIndexBasedSourceAdapter<E>
          Adapter for a Table to act as a ListIteratorIndexBased.ListIteratorIndexBasedSource
 
Field Summary
protected  ListIterator<Table.Row<E>> listIterator
           
protected  ListIteratorIndexBased.ListIteratorIndexBasedSource<E> listIteratorIndexBasedSource
           
 
Constructor Summary
TableRowListIterator(Table<E> table)
           
 
Method Summary
 void add(Table.Row<E> e)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 Table.Row<E> next()
           
 int nextIndex()
           
 Table.Row<E> previous()
           
 int previousIndex()
           
 void remove()
           
 void set(Table.Row<E> e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listIteratorIndexBasedSource

protected ListIteratorIndexBased.ListIteratorIndexBasedSource<E> listIteratorIndexBasedSource

listIterator

protected ListIterator<Table.Row<E>> listIterator
Constructor Detail

TableRowListIterator

public TableRowListIterator(Table<E> table)
Parameters:
table -
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Table.Row<E>>
Specified by:
hasNext in interface ListIterator<Table.Row<E>>

next

public Table.Row<E> next()
Specified by:
next in interface Iterator<Table.Row<E>>
Specified by:
next in interface ListIterator<Table.Row<E>>

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator<Table.Row<E>>

previous

public Table.Row<E> previous()
Specified by:
previous in interface ListIterator<Table.Row<E>>

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator<Table.Row<E>>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator<Table.Row<E>>

remove

public void remove()
Specified by:
remove in interface Iterator<Table.Row<E>>
Specified by:
remove in interface ListIterator<Table.Row<E>>

set

public void set(Table.Row<E> e)
Specified by:
set in interface ListIterator<Table.Row<E>>

add

public void add(Table.Row<E> e)
Specified by:
add in interface ListIterator<Table.Row<E>>


Copyright © 2011. All Rights Reserved.