Oracle® Collaboration Suite Workspaces API Reference
10g Release 1 (10.1.2)

B25479-01


oracle.workspaces.resource.discussion
Class CwThreadIterator

java.lang.Object
  extended byoracle.workspaces.resource.discussion.CwThreadIterator


public class CwThreadIterator
extends java.lang.Object

This iterator class wraps the TdThreadIterator class and passes requests through. The TdThreadIterator provides caching and bulk "gets" for better performance. Note that any exceptions which might occur during these operations at the TD layer are swallowed at that level and logged. CW layer exceptions are propagated.

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

Method Summary
boolean hasNext()
Returns true if and only if this iterator has at least one more object in it.
CwThread next()
Returns a CwThread object if there is one left in the iterator.
void seek(int iPosition)
Go directly to the specified index in the iterator.
int size()
Returns the number of elements in the iterator.

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

Method Detail

hasNext

public boolean hasNext()
Returns true if and only if this iterator has at least one more object in it.

next

public CwThread next()
              throws CwException
Returns a CwThread object if there is one left in the iterator. If there are no elements left in the iterator, throws NoSuchElementException.
Throws:
CwException

seek

public void seek(int iPosition)
          throws CwException
Go directly to the specified index in the iterator.
Throws:
CwException

size

public int size()
         throws CwException
Returns the number of elements in the iterator.
Throws:
CwException

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