public Iterator<A> iterator() {
                return new Iterator<A>() {
                    public boolean hasNext() {
                        return enumeration.hasMoreElements();
                    }

                    public A next() {
                        return enumeration.nextElement();
                    }

                    public void remove() {
                        throw new UnsupportedOperationException();
                    }
                };
            }