Package com.ibm.icu.text
Class StringCharacterIterator
- java.lang.Object
-
- com.ibm.icu.text.StringCharacterIterator
-
- All Implemented Interfaces:
Cloneable
,CharacterIterator
@Deprecated public final class StringCharacterIterator extends Object implements CharacterIterator
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.StringCharacterIterator
implements theCharacterIterater
protocol for aString
. TheStringCharacterIterator
class iterates over the entireString
.- See Also:
CharacterIterator
-
-
Field Summary
-
Fields inherited from interface java.text.CharacterIterator
DONE
-
-
Constructor Summary
Constructors Constructor Description StringCharacterIterator(String text)
Deprecated.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
clone()
Deprecated.ICU 2.4.char
current()
Deprecated.ICU 2.4.boolean
equals(Object obj)
Deprecated.ICU 2.4.char
first()
Deprecated.ICU 2.4.int
getBeginIndex()
Deprecated.ICU 2.4.int
getEndIndex()
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
setText(String text)
Deprecated.ICU 2.4.
-
-
-
Constructor Detail
-
StringCharacterIterator
@Deprecated public StringCharacterIterator(String text)
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Constructs an iterator with an initial index of 0.
-
StringCharacterIterator
@Deprecated public StringCharacterIterator(String text, int pos)
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 public StringCharacterIterator(String text, int begin, int end, int pos)
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 Detail
-
setText
@Deprecated public void setText(String text)
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 public char first()
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.first() for String.- Specified by:
first
in interfaceCharacterIterator
- See Also:
CharacterIterator.first()
-
last
@Deprecated public char last()
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.last() for String.- Specified by:
last
in interfaceCharacterIterator
- See Also:
CharacterIterator.last()
-
setIndex
@Deprecated public char setIndex(int p)
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.setIndex() for String.- Specified by:
setIndex
in interfaceCharacterIterator
- See Also:
CharacterIterator.setIndex(int)
-
current
@Deprecated public char current()
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.current() for String.- Specified by:
current
in interfaceCharacterIterator
- See Also:
CharacterIterator.current()
-
next
@Deprecated public char next()
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.next() for String.- Specified by:
next
in interfaceCharacterIterator
- See Also:
CharacterIterator.next()
-
previous
@Deprecated public char previous()
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.previous() for String.- Specified by:
previous
in interfaceCharacterIterator
- See Also:
CharacterIterator.previous()
-
getBeginIndex
@Deprecated public int getBeginIndex()
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.getBeginIndex() for String.- Specified by:
getBeginIndex
in interfaceCharacterIterator
- See Also:
CharacterIterator.getBeginIndex()
-
getEndIndex
@Deprecated public int getEndIndex()
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.getEndIndex() for String.- Specified by:
getEndIndex
in interfaceCharacterIterator
- See Also:
CharacterIterator.getEndIndex()
-
getIndex
@Deprecated public int getIndex()
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Implements CharacterIterator.getIndex() for String.- Specified by:
getIndex
in interfaceCharacterIterator
- See Also:
CharacterIterator.getIndex()
-
equals
@Deprecated public boolean equals(Object obj)
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Compares the equality of two StringCharacterIterator objects.
-
hashCode
@Deprecated public int hashCode()
Deprecated.ICU 2.4. Use java.text.StringCharacterIterator instead.Computes a hashcode for this iterator.
-
clone
@Deprecated public Object 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
-
-