home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- final class VectorEnumerator implements Enumeration {
- Vector vector;
- int count;
-
- VectorEnumerator(Vector var1) {
- this.vector = var1;
- this.count = 0;
- }
-
- public boolean hasMoreElements() {
- return this.count < this.vector.elementCount;
- }
-
- public Object nextElement() {
- Vector var2 = this.vector;
- synchronized(var2){}
-
- Object var1;
- try {
- if (this.count >= this.vector.elementCount) {
- throw new NoSuchElementException("VectorEnumerator");
- }
-
- var1 = this.vector.elementData[this.count++];
- } catch (Throwable var5) {
- throw var5;
- }
-
- return var1;
- }
- }
-