pRTI™ v1.3

hla.rti
Interface HandleIterator


public interface HandleIterator

This iterator interface is intended to be used with HandleSets. It differs from the usual Java Enumerator. The typical idiom is: for (HandleIterator i = handleSet.handles(), int h = i.first(); i.isValid(); h = i.next(); { ... } The handle value h will iterate through all the values in the set. This interface was generated by a SmartGuide.


Method Summary
 int first()
          Call this to get the first valid handle.
 boolean isValid()
          Should be checked before using return from first() or next()
 int next()
           
 

Method Detail

first

public int first()
Call this to get the first valid handle. Resets the iterator.
Returns:
int: first valid handle in set, or -1

isValid

public boolean isValid()
Should be checked before using return from first() or next()
Returns:
boolean: true if currently reported handle is valid.

next

public int next()
Returns:
int: next valid handle in set, or -1

pRTI™ v1.3

Visit the pRTI™ Website

pRTI is a trademark of Pitch Technologies AB

Repslagaregatan 25
S-582 22 Linkoping,
Sweden.
All Rights Reserved.