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

B25496-01

oracle.discussions.sdk
Class TdPopularThreadIterator

java.lang.Object
  |
  +--oracle.discussions.sdk.TdPopularThreadIterator

public class TdPopularThreadIterator
extends java.lang.Object
implements TdIterator

TdPopularThreadIterator returns threads sorted by the number of replies per thread. Because of this, we can't preload only a few results or anything like that. We need all of the results so that we can sort them appropriately.


Constructor Summary
TdPopularThreadIterator(oracle.mail.sdk.esmail.OracleUserConnectInfo fci, java.util.Map mBoards, oracle.discussions.sdk.impl.TdSession tdsession, oracle.discussions.sdk.impl.data.TdThreadInfo[] tdptis)
           

 

Method Summary
 int find(java.lang.Object key)
          return the index of objects with the given key 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)
          Move the search result into the supplied position.
 int size()
          Returns the size the result list.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TdPopularThreadIterator

public TdPopularThreadIterator(oracle.mail.sdk.esmail.OracleUserConnectInfo fci,
                               java.util.Map mBoards,
                               oracle.discussions.sdk.impl.TdSession tdsession,
                               oracle.discussions.sdk.impl.data.TdThreadInfo[] tdptis)

Method Detail

seek

public void seek(int iPosition)
Move the search result into the supplied position.
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

size

public int size()
Returns the size the result list.
Specified by:
size in interface TdIterator
Tags copied from interface: TdIterator
Returns:
int
Throws:
TdException - a generic oracle discussions exception

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

hasNext

public boolean hasNext()

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

next

public java.lang.Object next()

remove

public void remove()

find

public int find(java.lang.Object key)
         throws TdException
return the index of objects with the given key 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

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

B25496-01

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