com.sap.tc.cmi.util

Interface ICMIListIterator

All Superinterfaces:
Iterator

public interface ICMIListIterator
extends Iterator

Lightweight version of an list iterator. Works in much the same way as an Iterator, but additionally provides access to the index of the next element. In contrast to the java.util.ListIterator, retrieving the next index also moves the iterator.

This simplifies both the implementation of and access to the iterator, at least in the context of ICMIPageableList.

Since:
NW Paris, MS3

Type Classification Type Classification:

This interface is part of the Common Model Interface and is intended to be implemented by applications.


Method Summary
 int nextIndex()
          Returns the index of the next element (if any).
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

nextIndex

int nextIndex()
Returns the index of the next element (if any). Throws an

Returns:
indexo f next element
Throws:
NoSuchElementException - iteration has no more elements.
Access Rights

This class can be accessed from:


SC DC
[sap.com] FRAMEWORK [sap.com] tc/cmi
[sap.com] FRAMEWORK [sap.com] tc/cm/ejb/api


Copyright 2010 SAP AG Complete Copyright Notice