From 1d832b29de6aa234541bbed910be3c4d4a34eb87 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 18 Jun 2010 03:09:02 +0200 Subject: [PATCH] Now, FileIteratorState implements Iterator. --- src/fr/devinsy/util/FileIteratorState.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/util/FileIteratorState.java b/src/fr/devinsy/util/FileIteratorState.java index e8d98da..570203c 100644 --- a/src/fr/devinsy/util/FileIteratorState.java +++ b/src/fr/devinsy/util/FileIteratorState.java @@ -1,12 +1,13 @@ package fr.devinsy.util; import java.io.File; +import java.util.Iterator; /** * */ -public class FileIteratorState +public class FileIteratorState implements Iterator { 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() + { } }