Class 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 the CharacterIterater protocol for a String. The StringCharacterIterator class iterates over the entire String.
    See Also:
    CharacterIterator
    • 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 over
        pos - 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 over
        begin - Index of the first character
        end - Index of the character following the last character
        pos - 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
      • equals

        @Deprecated
        public boolean equals​(Object obj)
        Deprecated.
        ICU 2.4. Use java.text.StringCharacterIterator instead.
        Compares the equality of two StringCharacterIterator objects.
        Overrides:
        equals in class Object
        Parameters:
        obj - the StringCharacterIterator object to be compared with.
        Returns:
        true if the given obj is the same as this StringCharacterIterator object; false otherwise.
      • hashCode

        @Deprecated
        public int hashCode()
        Deprecated.
        ICU 2.4. Use java.text.StringCharacterIterator instead.
        Computes a hashcode for this iterator.
        Overrides:
        hashCode in class Object
        Returns:
        A hash code
      • clone

        @Deprecated
        public Object clone()
        Deprecated.
        ICU 2.4. Use java.text.StringCharacterIterator instead.
        Creates a copy of this iterator.
        Specified by:
        clone in interface CharacterIterator
        Overrides:
        clone in class Object
        Returns:
        A copy of this