Class CharIterators.UnmodifiableIterator

  • All Implemented Interfaces:
    CharIterator, java.util.Iterator<java.lang.Character>
    Enclosing class:
    CharIterators

    public static class CharIterators.UnmodifiableIterator
    extends java.lang.Object
    implements CharIterator
    An unmodifiable wrapper class for iterators.
    • Constructor Detail

      • UnmodifiableIterator

        public UnmodifiableIterator​(CharIterator i)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.Character>
      • nextChar

        public char nextChar()
        Description copied from interface: CharIterator
        Returns the next element as a primitive type.
        Specified by:
        nextChar in interface CharIterator
        Returns:
        the next element in the iteration.
        See Also:
        Iterator.next()