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

B25496-01

oracle.discussions.sdk
Class TdAggregateMessageIterator

oracle.discussions.sdk.TdAggregateMessageIterator

public class TdAggregateMessageIterator
implements TdIterator
Since:
ocs 10.1.1

Constructor Summary
TdAggregateMessageIterator(TdStore tdStore, oracle.discussions.sdk.impl.data.TdAggregateResultInfo tari, oracle.discussions.sdk.impl.TdSession tdsession)
          Constructs an AggregateMessageIterator object with the passed tdStore, AggregateResultInfo and TdSession objects.

 

Method Summary
 int find(java.lang.Object key)
          Returns the index of object 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)
          Moves the iterator to the specified position in the underlying collection.
 int size()
          Returns the number of objects in the underlying collection.

 

Constructor Detail

TdAggregateMessageIterator

public TdAggregateMessageIterator(TdStore tdStore,
                                  oracle.discussions.sdk.impl.data.TdAggregateResultInfo tari,
                                  oracle.discussions.sdk.impl.TdSession tdsession)
Constructs an AggregateMessageIterator object with the passed tdStore, AggregateResultInfo and TdSession objects.
Parameters:
url - an absolute URL giving the base location of the image
name - the location of the image, relative to the url argument
See Also:
Image

Method Detail

seek

public void seek(int iPosition)
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

size

public int size()
Description copied from interface: TdIterator
Returns the number of objects in the underlying collection.
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()

find

public int find(java.lang.Object key)
         throws TdException
Description copied from interface: TdIterator
Returns the index of object 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

remove

public void remove()

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

B25496-01

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