com.jivesoftware.base.database
Class PollBlockIterator
java.lang.Object
com.jivesoftware.base.database.PollBlockIterator
- All Implemented Interfaces:
- java.util.Iterator
public class PollBlockIterator
- extends java.lang.Object
- implements java.util.Iterator
Iterates through a set of polls.
Constructor Summary |
protected |
PollBlockIterator(long[] pollBlock,
java.lang.String query,
int startIndex,
int endIndex)
Constructs a new PollBlockIterator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollBlockIterator
protected PollBlockIterator(long[] pollBlock,
java.lang.String query,
int startIndex,
int endIndex)
- Constructs a new PollBlockIterator.
- Parameters:
pollBlock
- the starting pollBlock of elements to iterate through.query
- the SQL query corresponding to this iteration.startIndex
- the starting index of the iteration.endIndex
- the ending index of the iteration.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
hasPrevious
public boolean hasPrevious()
next
public java.lang.Object next()
throws java.util.NoSuchElementException
- Specified by:
next
in interface java.util.Iterator
- Throws:
java.util.NoSuchElementException
previous
public java.lang.Object previous()
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
setIndex
public void setIndex(Poll poll)
Copyright © 1999-2006 Jive Software.