com.jivesoftware.forum.nntp.spi
Class ArticleIterator
java.lang.Object
com.jivesoftware.forum.nntp.spi.ArticleIterator
- All Implemented Interfaces:
- java.util.Iterator
public class ArticleIterator
- extends java.lang.Object
- implements java.util.Iterator
Iterator over a range of articles (messages) in a forum by forumIndex. Any holes
in forumIndex values due to messages being moved, deleted, or archived will
automatically be skipped over.
Constructor Summary |
ArticleIterator(int start,
int end,
long forumID)
Creates a new article iterator for all messages between the starting and ending
forumIndex values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArticleIterator
public ArticleIterator(int start,
int end,
long forumID)
- Creates a new article iterator for all messages between the starting and ending
forumIndex values.
- Parameters:
start
- the starting forumIndex.end
- the ending forumIndex.forumID
- the id of the forum the article belongs to.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
Copyright © 1999-2006 Jive Software.