Enterprise Information Portal APIs

com.ibm.mm.sdk.common
Interface dkIterator

All Known Subinterfaces:
dkFederatedIterator, DKSequentialIterator

public interface dkIterator

dkIterator is the base interface for iterators. It is used to iterate over a collection members. dkIterator is sub-classed to provide suitable implementation for each collection type.


Method Summary
 boolean more()
          Returns true if there are more elements in the collection.
 java.lang.Object next()
          Advances the iterator to the next element and gets that element in the collection
 void reset()
          Resets the iterator to the beginning of the collection.
 

Method Detail

next

public java.lang.Object next()
                      throws DKUsageError
Advances the iterator to the next element and gets that element in the collection
Returns:
current element.

reset

public void reset()
Resets the iterator to the beginning of the collection.

more

public boolean more()
Returns true if there are more elements in the collection.
Returns:
true or false.

EIP Java APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.