|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JiveIterator<T extends JiveObject>
An extension of the Iterator class which allows backwards and forwards iteration,
looking up of the ID of next element as well as setting an index into the iteration.
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if this iterator has more elements when traversing the list in the forward direction. |
boolean |
hasPrevious()
Returns true if this list iterator has more elements when traversing the list in the reverse direction. |
T |
next()
Returns the next element in the list. |
long |
nextID()
Returns the ID of the next element in the iteration. |
T |
previous()
Returns the previous element in the list. |
void |
remove()
This method of the Iterator interface is not supported due to security considerations. |
void |
setIndex(long objectID)
Sets the index for the iteration to the specified object ID. |
void |
skipElement()
Skip over an element in the iteration. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
boolean hasNext()
hasNext in interface Iterator<T extends JiveObject>long nextID()
NoSuchElementException - iteration has no more elements.T next()
next in interface Iterator<T extends JiveObject>NoSuchElementException - if the iteration has no next element.void skipElement()
boolean hasPrevious()
T previous()
NoSuchElementException - if the iteration has no previous element.void setIndex(long objectID)
Implementation note: a performance setting allows an optional short-term query 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 message can fail. Ensure that this performance setting is disabled, or refrain from calling this method with newly created messages.
objectID - the id of the object to set the interation index to.
NoSuchElementException - if objectID is not a valid element of the iteration.void remove()
remove in interface Iterator<T extends JiveObject>UnsupportedOperationException - if this method is called.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||