tests/libjava-mauve/src/gnu/testlet/java/util/AbstractMap/EIterator.java
branchjk_new_structure
changeset 1541 75c2e24dea9a
parent 1540 92ac284961c1
child 1542 be11db817bcf
--- a/tests/libjava-mauve/src/gnu/testlet/java/util/AbstractMap/EIterator.java	Fri Jul 20 21:39:51 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-// Tags: not-a-test
-
-package gnu.testlet.java.util.AbstractMap;
-
-import java.util.*;
-
-class EIterator implements Iterator {
-        int pos=0;
-        int status=0;
-
-	private AcuniaAbstractMapTest map;
-
-        public EIterator(AcuniaAbstractMapTest map) {
-		this.map = map;
-	}
-
-        public  boolean hasNext() {
-                return  pos < map.size();
-        }
-
-        public Object next() {
-                status = 1;
-                if (pos>= map.size()) throw new NoSuchElementException("no elements left");
-                pos++;
-                return new Entry(map.keys.get(pos-1), map.values.get(pos-1));                   
-        }
-
-        public void remove() {
-                if (status != 1 ) throw new IllegalStateException("do a next() operation before remove()");
-                map.deleteInAM(map.keys.get(pos-1));
-                pos--;
-                status=-1;
-        }
-}
-