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

B25496-01

oracle.discussions.sdk
Class TdLastMessagePostsIterator

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

public class TdLastMessagePostsIterator
extends java.lang.Object
implements TdIterator

TdLastMessagePostsResultInfo returns the most recent messages posted per container sorted by post date. 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.

Since:
release specific (what release of product did this appear in)

Constructor Summary
TdLastMessagePostsIterator(java.util.Map mBoards, oracle.discussions.sdk.impl.TdSession tdsession, oracle.discussions.sdk.impl.data.TdMessageInfo[] tdmis)
           

 

Method Summary
 int find(java.lang.Object key)
          Returns the index of objects with the given key in the iterator: Not supported in this Iterator type
 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

TdLastMessagePostsIterator

public TdLastMessagePostsIterator(java.util.Map mBoards,
                                  oracle.discussions.sdk.impl.TdSession tdsession,
                                  oracle.discussions.sdk.impl.data.TdMessageInfo[] tdmis)

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
Returns the index of objects with the given key in the iterator: Not supported in this Iterator type
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.