|
Oracle Collaboration Suite Discussions Java API Reference 10g (10.1.1) Part No. B16232-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Parent interface for all oracle discussion related iterators Extends java.util.Iterator. Provides two way access to the underlying collection and also a search method which takes in the key and returns corresponding position of the key in the collection.
Sample code snippet illustrating the usage of TdIterator.
String rfc822Id = tdMsg.getRfc822MessageId(); TdThread tdt = tdMsg.getThread();//tdMsg is a TdMessage Object TdIterator tdit = tdt.getMessages();
| Method Summary | |
int |
find(java.lang.Object key)Returns the index of object with the given key in the iterator |
boolean |
hasPrevious()Returns a boolean value indicating if there is an object before the current iterator position in the underlying collection. |
java.lang.Object |
previous()Returns an object which is before the current iterator position in the underlying collection. |
void |
seek(int iPosition)Moves the iterator to the specified position in the underlying collection. |
int |
size()Returns the number of objects in the underlying collection. |
| Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
| Method Detail |
public boolean hasPrevious()
public java.lang.Object previous()
public int size()
throws TdException
TdException - a generic oracle discussions exception
public void seek(int iPosition)
throws TdException
iPosition - the position to which the iterator is to be moved.TdException - a generic oracle discussions exception
public int find(java.lang.Object key)
throws TdException
key - the Object which is being searched in the underlying collectionTdException - a generic oracle discussions exception
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||