home *** CD-ROM | disk | FTP | other *** search
- package netscape.util;
-
- class VectorEnumerator implements Enumeration {
- Vector vector;
- int index;
-
- VectorEnumerator(Vector var1) {
- this.vector = var1;
- this.index = 0;
- }
-
- VectorEnumerator(Vector var1, int var2) {
- this.vector = var1;
- this.index = var2;
- }
-
- public boolean hasMoreElements() {
- return this.index < this.vector.count();
- }
-
- public Object nextElement() {
- return this.vector.elementAt(this.index++);
- }
- }
-