+++ /dev/null
-// Copyright (C) 2004 Adam Megacz <adam@ibex.org> all rights reserved.
-//
-// You may modify, copy, and redistribute this code under the terms of
-// the GNU Library Public License version 2.1, with the exception of
-// the portion of clause 6a after the semicolon (aka the "obnoxious
-// relink clause")
-package org.ibex.util;
-import java.util.*;
-
-public class CounterEnumeration implements Enumeration {
- public final int max;
- private int cur = 0;
- public CounterEnumeration(int i) { max = i; }
- public void reset() { cur = 0; }
- public boolean hasMoreElements() { return cur < max; }
- public Object nextElement() { return new Integer(cur++); }
-}