Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.nntp.spi
Class ArticleIterator

java.lang.Object
  extended by 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.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.