Class ConsecutivelyNumberedFilenames.ConsecutivelyNumberedFilenamesIterator

  • All Implemented Interfaces:
    java.util.Iterator<java.io.File>
    Enclosing class:
    ConsecutivelyNumberedFilenames

    private static class ConsecutivelyNumberedFilenames.ConsecutivelyNumberedFilenamesIterator
    extends java.lang.Object
    implements java.util.Iterator<java.io.File>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int count  
      private java.io.File dir  
      private java.lang.String format  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.io.File 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

      • dir

        private final java.io.File dir
      • format

        private final java.lang.String format
      • count

        private int count
    • Constructor Detail

      • ConsecutivelyNumberedFilenamesIterator

        public ConsecutivelyNumberedFilenamesIterator​(java.io.File dir,
                                                      java.lang.String format,
                                                      int start)
    • Method Detail

      • hasNext

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

        public java.io.File next()
        Specified by:
        next in interface java.util.Iterator<java.io.File>
      • remove

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