Class Newlines.LineOffsetIterator

  • All Implemented Interfaces:
    java.util.Iterator<java.lang.Integer>
    Enclosing class:
    Newlines

    private static class Newlines.LineOffsetIterator
    extends java.lang.Object
    implements java.util.Iterator<java.lang.Integer>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int curr  
      private int idx  
      private java.lang.String input  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LineOffsetIterator​(java.lang.String input)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void advance()  
      boolean hasNext()  
      java.lang.Integer next()  
      void remove()  
      • 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
    • Field Detail

      • curr

        private int curr
      • idx

        private int idx
      • input

        private final java.lang.String input
    • Constructor Detail

      • LineOffsetIterator

        private LineOffsetIterator​(java.lang.String input)
    • Method Detail

      • hasNext

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

        public java.lang.Integer next()
        Specified by:
        next in interface java.util.Iterator<java.lang.Integer>
      • advance

        private void advance()
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<java.lang.Integer>