Class FileIterator

  • All Implemented Interfaces:

    public class FileIterator
    extends Object
    implements Iterator<File>

    FileIterator is an iterator over a number of files from a collection of FileSet instances.

    • Constructor Detail

      • FileIterator

        public FileIterator​( project,
                            Iterator<> fileSetIterator)
      • FileIterator

        public FileIterator​( project,
                            Iterator<> fileSetIterator,
                            boolean iterateDirectories)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<File>
        true if there is another object that matches the given predicate
      • next

        public File next()
        Specified by:
        next in interface Iterator<File>
        the next object which matches the given predicate
      • remove

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