org.rapla.components.util.iterator
Class IntIterator

java.lang.Object
  extended by org.rapla.components.util.iterator.IntIterator

public class IntIterator
extends Object

This class can iterate over a string containing a list of integers. Its tuned for performance, so it will return int instead of Integer and can be reused without recreating by calling the init method.


Constructor Summary
IntIterator()
           
 
Method Summary
 int getPos()
           
 boolean hasNext()
           
 void init(String text, char delimiter)
           
 int next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntIterator

public IntIterator()
Method Detail

init

public void init(String text,
                 char delimiter)

hasNext

public boolean hasNext()

next

public int next()

getPos

public int getPos()


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.