Class Character.FOCharIterator

  • All Implemented Interfaces:
    java.lang.Cloneable, java.util.Iterator
    Enclosing class:
    Character

    private class Character.FOCharIterator
    extends CharIterator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean bFirst  
      private Character foChar  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      char nextChar()  
      void remove()
      void replaceChar​(char c)
      Replace the current character managed by the iterator with a specified character?
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • bFirst

        private boolean bFirst
    • Constructor Detail

      • FOCharIterator

        FOCharIterator​(Character foChar)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Description copied from class: CharIterator
        Specified by:
        hasNext in interface java.util.Iterator
        Specified by:
        hasNext in class CharIterator
      • nextChar

        public char nextChar()
        Specified by:
        nextChar in class CharIterator
        Returns:
        the character that is the next character in the collection
      • remove

        public void remove()
        Description copied from class: CharIterator
        Specified by:
        remove in interface java.util.Iterator
        Overrides:
        remove in class CharIterator
      • replaceChar

        public void replaceChar​(char c)
        Description copied from class: CharIterator
        Replace the current character managed by the iterator with a specified character?
        Overrides:
        replaceChar in class CharIterator
        Parameters:
        c - character