cucumber.runtime.io.FileResourceIterable Maven / Gradle / Ivy
package cucumber.runtime.io;
import java.io.File;
import java.util.Iterator;
public class FileResourceIterable implements Iterable {
private final File root;
private final File file;
private final String suffix;
public FileResourceIterable(File root, File file, String suffix) {
this.root = root;
this.file = file;
this.suffix = suffix;
}
@Override
public Iterator iterator() {
return FileResourceIterator.createFileResourceIterator(root, file, suffix);
}
}