Package org.apache.commons.lang3
Class CharRange.CharacterIterator
java.lang.Object
org.apache.commons.lang3.CharRange.CharacterIterator
- Enclosing class:
- CharRange
Character
Iterator
.
#NotThreadSafe#
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Constructs a new iterator for the character range. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
current
private char currentThe current character -
range
-
hasNext
private boolean hasNext
-
-
Constructor Details
-
CharacterIterator
Constructs a new iterator for the character range.- Parameters:
r
- The character range
-
-
Method Details
-
prepareNext
private void prepareNext()Prepares the next character in the range. -
hasNext
public boolean hasNext()Has the iterator not reached the end character yet? -
next
Returns the next character in the iteration -
remove
public void remove()Always throws UnsupportedOperationException.- Specified by:
remove
in interfaceIterator<Character>
- Throws:
UnsupportedOperationException
- Always thrown.- See Also:
-