Package org.apache.fop.fo
Class OneCharIterator
java.lang.Object
org.apache.fop.fo.CharIterator
org.apache.fop.fo.OneCharIterator
Class providing an iterator for one character.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.fop.fo.CharIterator
clone, next, remove, replaceCharMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
OneCharIterator
public OneCharIterator(char c) Constructor- Parameters:
c- the character that this iterator should iterate.
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from class:CharIterator- Specified by:
hasNextin interfaceIterator- Specified by:
hasNextin classCharIterator- Returns:
- true if there is another element in the collection over which to iterate (since this iterator only handles one character, this will return false if it is past that character).
-
nextChar
- Specified by:
nextCharin classCharIterator- Returns:
- the next character, if there is one (since there is only one character over which to iterate, it must be the first character).
- Throws:
NoSuchElementException- if past the first character
-