Package gnu.lists

Class Sequences.CharacterIterator

  • All Implemented Interfaces:
    java.util.Iterator<Char>
    Enclosing class:
    Sequences

    public static class Sequences.CharacterIterator
    extends java.lang.Object
    implements java.util.Iterator<Char>
    Iterator subclass to iterate of CharSequences. A CharSequences is treated as a sequence of (20-bit) code-points, not 16-bit char values.
    • Constructor Summary

      Constructors 
      Constructor Description
      CharacterIterator​(java.lang.CharSequence cseq)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      Char next()  
      • Methods inherited from class java.lang.Object

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

        forEachRemaining, remove
    • Constructor Detail

      • CharacterIterator

        public CharacterIterator​(java.lang.CharSequence cseq)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Char>
      • next

        public Char next()
        Specified by:
        next in interface java.util.Iterator<Char>