Package net.bytebuddy.build
Class Plugin.Engine.Source.ForFolder.FolderIterator
- java.lang.Object
-
- net.bytebuddy.build.Plugin.Engine.Source.ForFolder.FolderIterator
-
- All Implemented Interfaces:
Iterator<Plugin.Engine.Source.Element>
- Enclosing class:
- Plugin.Engine.Source.ForFolder
protected class Plugin.Engine.Source.ForFolder.FolderIterator extends Object implements Iterator<Plugin.Engine.Source.Element>
An iterator that exposes all files within a folder structure as elements.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FolderIterator(File folder)
Creates a new iterator representation for all files within a folder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Plugin.Engine.Source.Element
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
-
-
-
-
Constructor Detail
-
FolderIterator
protected FolderIterator(File folder)
Creates a new iterator representation for all files within a folder.- Parameters:
folder
- The root folder.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<Plugin.Engine.Source.Element>
-
next
public Plugin.Engine.Source.Element next()
- Specified by:
next
in interfaceIterator<Plugin.Engine.Source.Element>
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<Plugin.Engine.Source.Element>
-
-