Oracle Discussions Java API Reference
10g Release 1 (10.1.2)

B25496-01

oracle.discussions.sdk
Class TdThreadIterator

oracle.discussions.sdk.TdThreadIterator

public class TdThreadIterator
implements TdIterator
Since:
release specific (what release of product did this appear in)

Method Summary
 int find(java.lang.Object key)
          return the index of current Thread in the iterator
 boolean hasNext()
           
 boolean hasPrevious()
          Returns a boolean value indicating if there is an object before the current iterator position in the underlying collection.
 java.lang.Object next()
           
 java.lang.Object previous()
          Returns an object which is before the current iterator position in the underlying collection.
 void remove()
           
 void seek(int iPosition)
          Moves the iterator to the specified position in the underlying collection.
 int size()
          Return the size of the iterator of the moment when iterator is created

 

Method Detail

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()
Description copied from interface: TdIterator
Returns a boolean value indicating if there is an object before the current iterator position in the underlying collection.
Specified by:
hasPrevious in interface TdIterator
Tags copied from interface: TdIterator
Returns:
boolean

next

public java.lang.Object next()

previous

public java.lang.Object previous()
Description copied from interface: TdIterator
Returns an object which is before the current iterator position in the underlying collection.
Specified by:
previous in interface TdIterator
Tags copied from interface: TdIterator
Returns:
Object

remove

public void remove()

size

public int size()
         throws TdException
Return the size of the iterator of the moment when iterator is created
Specified by:
size in interface TdIterator
Tags copied from interface: TdIterator
Returns:
int
Throws:
TdException - a generic oracle discussions exception

find

public int find(java.lang.Object key)
         throws TdException
return the index of current Thread in the iterator
Specified by:
find in interface TdIterator
Tags copied from interface: TdIterator
Parameters:
key - the Object which is being searched in the underlying collection
Throws:
TdException - a generic oracle discussions exception

seek

public void seek(int iPosition)
          throws TdException
Description copied from interface: TdIterator
Moves the iterator to the specified position in the underlying collection. Can be used when the objects in the underlying collection are accessed randomly.
Specified by:
seek in interface TdIterator
Tags copied from interface: TdIterator
Parameters:
iPosition - the position to which the iterator is to be moved.
Throws:
TdException - a generic oracle discussions exception

Oracle Discussions Java API Reference
10g Release 1 (10.1.2)

B25496-01

Copyright © 2002, 2005, Oracle. All rights reserved.