home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / util / Vector$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  718 b   |  29 lines

  1. package java.util;
  2.  
  3. class Vector$1 implements Enumeration {
  4.    int count;
  5.    // $FF: synthetic field
  6.    private final Vector this$0;
  7.  
  8.    Vector$1(Vector var1) {
  9.       this.this$0 = var1;
  10.       this.count = 0;
  11.    }
  12.  
  13.    public boolean hasMoreElements() {
  14.       return this.count < this.this$0.elementCount;
  15.    }
  16.  
  17.    public Object nextElement() {
  18.       Vector var1 = this.this$0;
  19.       synchronized(var1) {
  20.          if (this.count < this.this$0.elementCount) {
  21.             Object var2 = this.this$0.elementData[this.count++];
  22.             return var2;
  23.          }
  24.       }
  25.  
  26.       throw new NoSuchElementException("Vector Enumeration");
  27.    }
  28. }
  29.