Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.proxy
Class ForumThreadIteratorProxy

java.lang.Object
  extended by com.jivesoftware.forum.ForumThreadIterator
      extended by com.jivesoftware.forum.proxy.ForumThreadIteratorProxy
All Implemented Interfaces:
java.util.Iterator

public class ForumThreadIteratorProxy
extends ForumThreadIterator


Field Summary
 
Fields inherited from class com.jivesoftware.forum.ForumThreadIterator
EMPTY_ITERATOR
 
Constructor Summary
ForumThreadIteratorProxy(ForumThreadIterator iterator, AuthToken authToken, Permissions permissions)
           
 
Method Summary
 boolean hasNext()
          Returns true if this iterator has more threads when traversing the list in the forward direction.
 boolean hasPrevious()
          Returns true if this list iterator has more threads when traversing the list in the reverse direction.
 java.lang.Object next()
          Returns the next thread in the list.
 java.lang.Object previous()
          Returns the previous element in the list.
 void setIndex(ForumThread thread)
          Sets the index for the iteration to the specified ForumThread.
 
Methods inherited from class com.jivesoftware.forum.ForumThreadIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForumThreadIteratorProxy

public ForumThreadIteratorProxy(ForumThreadIterator iterator,
                                AuthToken authToken,
                                Permissions permissions)
Method Detail

hasNext

public boolean hasNext()
Description copied from class: ForumThreadIterator
Returns true if this iterator has more threads when traversing the list in the forward direction. (In other words, returns true if next would return a thread rather than throwing an exception.)

Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in class ForumThreadIterator
Returns:
true if the iterator has more threads when traversing the list in the forward direction.

next

public java.lang.Object next()
Description copied from class: ForumThreadIterator
Returns the next thread in the list. This method may be called repeatedly to iterate through the list, or intermixed with calls to previous to go back and forth. (Note that alternating calls to next and previous will return the same element repeatedly.)

Specified by:
next in interface java.util.Iterator
Specified by:
next in class ForumThreadIterator
Returns:
the next thread in the list.

hasPrevious

public boolean hasPrevious()
Description copied from class: ForumThreadIterator
Returns true if this list iterator has more threads when traversing the list in the reverse direction. (In other words, returns true if previous would return a thread rather than throwing an exception.)

Specified by:
hasPrevious in class ForumThreadIterator
Returns:
true if the list iterator has more elements when traversing the list in the reverse direction.

previous

public java.lang.Object previous()
Description copied from class: ForumThreadIterator
Returns the previous element in the list. This method may be called repeatedly to iterate through the list backwards, or intermixed with calls to next to go back and forth. (Note that alternating calls to next and previous will return the same element repeatedly.)

Specified by:
previous in class ForumThreadIterator
Returns:
the previous element in the list.

setIndex

public void setIndex(ForumThread thread)
Description copied from class: ForumThreadIterator
Sets the index for the iteration to the specified ForumThread.

Implementation note: a performance setting allows an optional short-term cache so that object invalidations are delayed for a period of time. This can mean that trying to set the index for a newly created thread can fail. Ensure that this performance setting is disabled, or refrain from calling this method with newly created threads.

Specified by:
setIndex in class ForumThreadIterator

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.