|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portlet.forums.helper.IndexIterator
An iterator wrapper than keeps track of the index.
Field Summary | |
private int |
index
|
private java.util.Iterator |
iterator
|
Constructor Summary | |
IndexIterator(java.util.Iterator iterator)
Creates a new IndexIterator object. |
|
IndexIterator(java.util.Iterator iterator,
int start)
Creates a new IndexIterator object. |
Method Summary | |
int |
getIndex()
DOCUMENT_ME |
boolean |
hasNext()
DOCUMENT_ME |
java.lang.Object |
next()
DOCUMENT_ME |
void |
remove()
DOCUMENT_ME |
static IndexIterator |
wrap(java.util.Iterator iterator)
DOCUMENT_ME |
static IndexIterator |
wrap(java.util.Iterator iterator,
int start)
DOCUMENT_ME |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int index
private java.util.Iterator iterator
Constructor Detail |
public IndexIterator(java.util.Iterator iterator)
IndexIterator
object.
iterator
- DOCUMENT_MEpublic IndexIterator(java.util.Iterator iterator, int start)
IndexIterator
object.
iterator
- DOCUMENT_MEstart
- DOCUMENT_MEMethod Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public int getIndex()
public static IndexIterator wrap(java.util.Iterator iterator)
iterator
- DOCUMENT_ME
public static IndexIterator wrap(java.util.Iterator iterator, int start)
iterator
- DOCUMENT_MEstart
- DOCUMENT_ME
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |