home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / netscape / util / VectorEnumerator.class (.txt) < prev   
Encoding:
Java Class File  |  1999-04-12  |  795 b   |  25 lines

  1. package netscape.util;
  2.  
  3. class VectorEnumerator implements Enumeration {
  4.    Vector vector;
  5.    int index;
  6.  
  7.    VectorEnumerator(Vector var1) {
  8.       this.vector = var1;
  9.       this.index = 0;
  10.    }
  11.  
  12.    VectorEnumerator(Vector var1, int var2) {
  13.       this.vector = var1;
  14.       this.index = var2;
  15.    }
  16.  
  17.    public boolean hasMoreElements() {
  18.       return this.index < this.vector.count();
  19.    }
  20.  
  21.    public Object nextElement() {
  22.       return this.vector.elementAt(this.index++);
  23.    }
  24. }
  25.