net.sf.sfac.string
Class StringCharIterator
java.lang.Object
net.sf.sfac.string.AbstractCharIterator
net.sf.sfac.string.StringCharIterator
- All Implemented Interfaces:
- CharIterator
public class StringCharIterator
- extends AbstractCharIterator
Char iterator fetching chars from a simple string.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringCharIterator
public StringCharIterator(String str)
setData
public void setData(String str)
getFirstString
protected String getFirstString()
- Description copied from class:
AbstractCharIterator
- Get the first String available for iteration.
- Specified by:
getFirstString in class AbstractCharIterator
- Returns:
- the first String available for iteration.
getNextString
protected String getNextString()
- Description copied from class:
AbstractCharIterator
- Get the next String available for iteration.
If no next string is available, implementing classes have to call setFinished() (then the return value is
ignored).
- Specified by:
getNextString in class AbstractCharIterator
- Returns:
- the next String available for iteration.
Copyright © 2012. All Rights Reserved.