Package com.ibm.icu.text
Class StringCharacterIterator
java.lang.Object
com.ibm.icu.text.StringCharacterIterator
- All Implemented Interfaces:
Cloneable
,CharacterIterator
Deprecated.
ICU 2.4. Use java.text.StringCharacterIterator instead.
StringCharacterIterator
implements the
CharacterIterater
protocol for a String
.
The StringCharacterIterator
class iterates over the
entire String
.- See Also:
-
Field Summary
Fields inherited from interface java.text.CharacterIterator
DONE
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ICU 2.4.StringCharacterIterator
(String text, int pos) Deprecated.ICU 2.4.StringCharacterIterator
(String text, int begin, int end, int pos) Deprecated.ICU 2.4. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.ICU 2.4.char
current()
Deprecated.ICU 2.4.boolean
Deprecated.ICU 2.4.char
first()
Deprecated.ICU 2.4.int
Deprecated.ICU 2.4.int
Deprecated.ICU 2.4.int
getIndex()
Deprecated.ICU 2.4.int
hashCode()
Deprecated.ICU 2.4.char
last()
Deprecated.ICU 2.4.char
next()
Deprecated.ICU 2.4.char
previous()
Deprecated.ICU 2.4.char
setIndex
(int p) Deprecated.ICU 2.4.void
Deprecated.ICU 2.4.
-
Constructor Details
-
StringCharacterIterator
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Constructs an iterator with an initial index of 0. -
StringCharacterIterator
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Constructs an iterator with the specified initial index.- Parameters:
text
- The String to be iterated overpos
- Initial iterator position
-
StringCharacterIterator
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Constructs an iterator over the given range of the given string, with the index set at the specified position.- Parameters:
text
- The String to be iterated overbegin
- Index of the first characterend
- Index of the character following the last characterpos
- Initial iterator position
-
-
Method Details
-
setText
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.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 StringCharacterIterator objects every time their setText method is called.- Parameters:
text
- The String to be iterated over
-
first
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.first() for String.- Specified by:
first
in interfaceCharacterIterator
- See Also:
-
last
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.last() for String.- Specified by:
last
in interfaceCharacterIterator
- See Also:
-
setIndex
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.setIndex() for String.- Specified by:
setIndex
in interfaceCharacterIterator
- See Also:
-
current
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.current() for String.- Specified by:
current
in interfaceCharacterIterator
- See Also:
-
next
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.next() for String.- Specified by:
next
in interfaceCharacterIterator
- See Also:
-
previous
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.previous() for String.- Specified by:
previous
in interfaceCharacterIterator
- See Also:
-
getBeginIndex
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.getBeginIndex() for String.- Specified by:
getBeginIndex
in interfaceCharacterIterator
- See Also:
-
getEndIndex
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.getEndIndex() for String.- Specified by:
getEndIndex
in interfaceCharacterIterator
- See Also:
-
getIndex
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.getIndex() for String.- Specified by:
getIndex
in interfaceCharacterIterator
- See Also:
-
equals
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Compares the equality of two StringCharacterIterator objects. -
hashCode
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Computes a hashcode for this iterator. -
clone
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Creates a copy of this iterator.- Specified by:
clone
in interfaceCharacterIterator
- Overrides:
clone
in classObject
- Returns:
- A copy of this
-