Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
java.text

Class StringCharacterIterator

    • Constructor Detail

      • StringCharacterIterator

        public StringCharacterIterator(String text)
        Constructs an iterator with an initial index of 0.
      • StringCharacterIterator

        public StringCharacterIterator(String text,
                               int pos)
        Constructs an iterator with the specified initial index.
        Parameters:
        text - The String to be iterated over
        pos - Initial iterator position
      • StringCharacterIterator

        public 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.
        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

        public void setText(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 StringCharacterIterator objects every time their setText method is called.
        Parameters:
        text - The String to be iterated over
        Since:
        1.2
      • first

        public char first()
        Implements CharacterIterator.first() for String.
        Specified by:
        first in interface CharacterIterator
        Returns:
        the first character in the text, or DONE if the text is empty
        See Also:
        CharacterIterator.first()
      • last

        public char last()
        Implements CharacterIterator.last() for String.
        Specified by:
        last in interface CharacterIterator
        Returns:
        the last character in the text, or DONE if the text is empty
        See Also:
        CharacterIterator.last()
      • setIndex

        public char setIndex(int p)
        Implements CharacterIterator.setIndex() for String.
        Specified by:
        setIndex in interface CharacterIterator
        Parameters:
        p - the position within the text. Valid values range from getBeginIndex() to getEndIndex(). An IllegalArgumentException is thrown if an invalid value is supplied.
        Returns:
        the character at the specified position or DONE if the specified position is equal to getEndIndex()
        See Also:
        CharacterIterator.setIndex(int)
      • current

        public char current()
        Implements CharacterIterator.current() for String.
        Specified by:
        current in interface CharacterIterator
        Returns:
        the character at the current position or DONE if the current position is off the end of the text.
        See Also:
        CharacterIterator.current()
      • next

        public char next()
        Implements CharacterIterator.next() for String.
        Specified by:
        next in interface CharacterIterator
        Returns:
        the character at the new position or DONE if the new position is off the end of the text range.
        See Also:
        CharacterIterator.next()
      • previous

        public char previous()
        Implements CharacterIterator.previous() for String.
        Specified by:
        previous in interface CharacterIterator
        Returns:
        the character at the new position or DONE if the current position is equal to getBeginIndex().
        See Also:
        CharacterIterator.previous()
      • equals

        public boolean equals(Object obj)
        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.
        See Also:
        Object.hashCode(), HashMap

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-java/text/stringcharacteriterator.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut