@@ -0,0 +1,764 @@
+package de.jpaw.util;%0A%0Aimport java.util.Iterator;%0Aimport java.util.NoSuchElementException;%0A%0A/** Provides an iterator which processes every instance of an enum.%0A *%0A * @author mbi%0A *%0A */%0Apublic class EnumIterator%3CE extends Enum%3CE%3E%3E implements Iterator%3CE%3E %7B%0A%0A    private final E%5B%5D allValues;%0A    private int pos;%0A%0A    public EnumIterator(E%5B%5D allValues) %7B%0A        this.allValues = allValues;%0A        pos = 0;%0A    %7D%0A%0A    @Override%0A    public boolean hasNext() %7B%0A        return pos %3C allValues.length;%0A    %7D%0A%0A    @Override%0A    public E next() %7B%0A        if (pos %3E= allValues.length)%0A            throw new NoSuchElementException();%0A        return allValues%5Bpos++%5D;%0A    %7D%0A%0A    @Override%0A    public void remove() %7B%0A        throw new UnsupportedOperationException();%0A    %7D%0A%7D%0A

add EnumIterator