Package org.eclipse.wst.xml.xpath2.processor.internal.utils
public class StringCodePointIterator extends java.lang.Object
Constructor Summary |
StringCodePointIterator(java.lang.String text) |
Method Summary | |
public java.lang.Object | clone() Creates a copy of this iterator. |
public int | current() Implements CodePointIterator.current() for String. |
public boolean | equals(java.lang.Object obj) Compares the equality of two StringCodePointIterator objects. |
public int | first() Implements CodePointIterator.first() for String. |
public int | getIndex() Implements CodePointIterator.getIndex() for String. |
public int | hashCode() Computes a hashcode for this iterator. |
public int | last() Implements CodePointIterator.last() for String. |
public int | next() Implements CodePointIterator.next() for String. |
public int | previous() Implements CodePointIterator.previous() for String. |
public void | setText(java.lang.String text) Reset this iterator to point to a new string. This package-visible method is used by other java.text classes that want to avoid allocating new StringCodePointIterator objects every time their setText method is called. |
Constructor Detail |
public StringCodePointIterator(java.lang.String text)
Constructs an iterator with an initial index of 0.
Methods Detail |
public java.lang.Object clone()
Creates a copy of this iterator.
java.lang.Object
- A copy of this
public int current()
Implements CodePointIterator.current() for String.
int
public boolean equals(java.lang.Object obj)
Compares the equality of two StringCodePointIterator objects.
obj
- the StringCodePointIterator object to be compared with.
boolean
- true if the given obj is the same as this StringCodePointIterator object; false otherwise.
public int first()
Implements CodePointIterator.first() for String.
int
public int getIndex()
Implements CodePointIterator.getIndex() for String.
int
public int hashCode()
Computes a hashcode for this iterator.
int
- A hash code
public int last()
Implements CodePointIterator.last() for String.
int
public int next()
Implements CodePointIterator.next() for String.
int
public int previous()
Implements CodePointIterator.previous() for String.
int
public void setText(java.lang.String text)
Reset this iterator to point to a new string. This package-visible method is used by other java.text classes that want to avoid allocating new StringCodePointIterator objects every time their setText method is called.
text
- The String to be iterated over