Class FileDepthFirstIterator

java.lang.Object
net.thevpc.common.iterators.FileDepthFirstIterator
All Implemented Interfaces:
Iterator<File>

public class FileDepthFirstIterator extends Object implements Iterator<File>
Author:
thevpc
  • Constructor Details

    • FileDepthFirstIterator

      public FileDepthFirstIterator(File file)
  • Method Details

    • dropChildren

      public void dropChildren()
      this method can be called immediately after next() to disable current folder's children to be processed
    • hasNext

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

      public File next()
      Specified by:
      next in interface Iterator<File>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<File>