|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.ForumThreadIterator
public abstract class ForumThreadIterator
An iterator for ForumThreads that allows backwards and forwards iteration, as well as setting an index into the Iteration.
| Field Summary | |
|---|---|
static ForumThreadIterator |
EMPTY_ITERATOR
The empty thread iterator. |
| Constructor Summary | |
|---|---|
ForumThreadIterator()
|
|
| Method Summary | |
|---|---|
abstract boolean |
hasNext()
Returns true if this iterator has more threads when traversing the list in the forward direction. |
abstract boolean |
hasPrevious()
Returns true if this list iterator has more threads when traversing the list in the reverse direction. |
abstract java.lang.Object |
next()
Returns the next thread in the list. |
abstract java.lang.Object |
previous()
Returns the previous element in the list. |
void |
remove()
This method of the Iterator interface is not supported due to security considerations. |
abstract void |
setIndex(ForumThread thread)
Sets the index for the iteration to the specified ForumThread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ForumThreadIterator EMPTY_ITERATOR
| Constructor Detail |
|---|
public ForumThreadIterator()
| Method Detail |
|---|
public abstract boolean hasNext()
hasNext in interface java.util.Iteratorpublic abstract java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - if the iteration has no next element.public abstract boolean hasPrevious()
public abstract java.lang.Object previous()
java.util.NoSuchElementException - if the iteration has no previous
element.public abstract void setIndex(ForumThread thread)
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.
java.util.NoSuchElementException - if thread is not a valid
element of the iteration.public void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - if this method is called.
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||