Now, FileIteratorState implements Iterator<File>.

This commit is contained in:
Christian P. MOMON 2010-06-18 03:09:02 +02:00
parent fb42e17c49
commit 1d832b29de

View file

@ -1,12 +1,13 @@
package fr.devinsy.util;
import java.io.File;
import java.util.Iterator;
/**
*
*/
public class FileIteratorState
public class FileIteratorState implements Iterator<File>
{
protected File[] files;
protected int currentIndex;
@ -107,6 +108,7 @@ public class FileIteratorState
/**
*
*/
@Override
public boolean hasNext()
{
boolean result;
@ -129,6 +131,7 @@ public class FileIteratorState
/**
*
*/
@Override
public File next()
{
File result;
@ -138,5 +141,14 @@ public class FileIteratorState
//
return(result);
}
/**
*
*/
@Override
public void remove()
{
}
}