1 class HashMapIterator extends Iterator {
7 public HashMapIterator(HashMap map, int type) {
14 public boolean hasNext() {
15 if (he!=null&&he.next!=null)
18 while((i<map.table.length)&&map.table[i]==null)
20 return (i<map.table.length);
23 public Object next() {
24 if (he!=null&&he.next!=null) {
33 while((bin<map.table.length)&&
34 (map.table[bin]==null))
36 if (bin<map.table.length) {
44 } else System.error();
47 public void remove() {
48 System.out.println("HashMapIterator.remove() not implemented.");