*/
package mir.util;
-import java.util.List;
import java.util.NoSuchElementException;
public class SubsetIterator implements RewindableIterator {
private RewindableIterator master;
- private List cachedItems;
private int position;
private int skip;
private int maxLength;
public Object next() {
if (hasNext())
return getNext();
- else
- throw new NoSuchElementException();
+ throw new NoSuchElementException();
}
public void remove() {
public void rewind() {
position=0;
master.rewind();
- };
+ }
}
\ No newline at end of file