Class CharacterArrayCharacterIterator

    • Constructor Detail

      • CharacterArrayCharacterIterator

        public CharacterArrayCharacterIterator​(char[] src,
                                               int off,
                                               int len)
        Parameters:
        src - - encapsulated String
    • Method Detail

      • charAt

        public char charAt​(int pos)
        Specified by:
        charAt in interface CharacterIterator
        Returns:
        a character at the specified position.
      • isEnd

        public boolean isEnd​(int pos)
        Specified by:
        isEnd in interface CharacterIterator
        Returns:
        true iff if the specified index is after the end of the character stream