站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

IndexIterator - JBOSS Portal 2.6 API 英文版文档


org.jboss.portlet.forums.helper
Class IndexIterator

java.lang.Object
  extended byorg.jboss.portlet.forums.helper.IndexIterator
All Implemented Interfaces:
java.util.Iterator

public class IndexIterator
extends java.lang.Object
implements java.util.Iterator

An iterator wrapper than keeps track of the index.

Version:
$Revision: 5448 $
Author:
Julien Viet

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

index

private int index

iterator

private java.util.Iterator iterator
Constructor Detail

IndexIterator

public IndexIterator(java.util.Iterator iterator)
Creates a new IndexIterator object.

Parameters:
iterator - DOCUMENT_ME

IndexIterator

public IndexIterator(java.util.Iterator iterator,
                     int start)
Creates a new IndexIterator object.

Parameters:
iterator - DOCUMENT_ME
start - DOCUMENT_ME
Method Detail

hasNext

public boolean hasNext()
DOCUMENT_ME

Specified by:
hasNext in interface java.util.Iterator
Returns:
DOCUMENT_ME

next

public java.lang.Object next()
DOCUMENT_ME

Specified by:
next in interface java.util.Iterator
Returns:
DOCUMENT_ME

remove

public void remove()
DOCUMENT_ME

Specified by:
remove in interface java.util.Iterator

getIndex

public int getIndex()
DOCUMENT_ME

Returns:
DOCUMENT_ME

wrap

public static IndexIterator wrap(java.util.Iterator iterator)
DOCUMENT_ME

Parameters:
iterator - DOCUMENT_ME
Returns:
DOCUMENT_ME

wrap

public static IndexIterator wrap(java.util.Iterator iterator,
                                 int start)
DOCUMENT_ME

Parameters:
iterator - DOCUMENT_ME
start - DOCUMENT_ME
Returns:
DOCUMENT_ME