All Implemented Interfaces:
Cloneable, CharacterIterator

  • Field Summary

    Fields declared in interface CharacterIterator

    DONE

    static final char

    Constant that is returned when the iterator has reached either the end or the beginning of the text.

  • Constructor Summary

    Constructors

    Constructs an iterator with an initial index of 0.

    Constructs an iterator with the specified initial index.

    StringCharacterIterator(String text, int begin, int end, int pos)

    Constructs an iterator over the given range of the given string, with the index set at the specified position.

  • Method Summary

    clone()

    Creates a copy of this iterator.

    char

    current()

    Implements CharacterIterator.current() for String.

    boolean

    Compares the equality of two StringCharacterIterator objects.

    char

    first()

    Implements CharacterIterator.first() for String.

    int

    Implements CharacterIterator.getBeginIndex() for String.

    int

    Implements CharacterIterator.getEndIndex() for String.

    int

    getIndex()

    Implements CharacterIterator.getIndex() for String.

    int

    hashCode()

    Computes a hashcode for this iterator.

    char

    last()

    Implements CharacterIterator.last() for String.

    char

    next()

    Implements CharacterIterator.next() for String.

    char

    previous()

    Implements CharacterIterator.previous() for String.

    char

    setIndex(int p)

    Implements CharacterIterator.setIndex() for String.

    void

    Reset this iterator to point to a new string.

    Methods declared in class Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    Returns a string representation of the object.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Constructor Details

    • StringCharacterIterator

    • StringCharacterIterator

    • StringCharacterIterator

  • Method Details

    • setText

    • first

    • last

    • setIndex

    • current

    • next

    • previous

    • getBeginIndex

    • getEndIndex

    • getIndex

    • equals

    • hashCode

    • clone