1 23 package com.sun.enterprise.server.ss.util; 24 25 26 37 public class ASIterator implements java.util.Iterator { 38 39 java.util.Iterator it = null; 40 ASSet asSet = null; 41 42 public ASIterator(ASSet asSet) { 43 this.it = asSet.actualSet().iterator(); 44 this.asSet = asSet; 45 } 46 47 public Object next() { 48 return asSet.wrapIfNecessary(it.next()); 49 } 50 51 public boolean hasNext() { 52 return it.hasNext(); 53 } 54 55 public void remove() { 56 it.remove(); 57 } 58 } 59 | Popular Tags |