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 / sun / applet / AppletClassLoader$3.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  776 b   |  41 lines

  1. package sun.applet;
  2.  
  3. import java.net.URL;
  4. import java.util.Enumeration;
  5. import java.util.NoSuchElementException;
  6.  
  7. class AppletClassLoader$3 implements Enumeration {
  8.    private boolean done;
  9.    // $FF: synthetic field
  10.    private final Enumeration val$e;
  11.    // $FF: synthetic field
  12.    private final URL val$url;
  13.    // $FF: synthetic field
  14.    private final AppletClassLoader this$0;
  15.  
  16.    AppletClassLoader$3(AppletClassLoader var1, Enumeration var2, URL var3) {
  17.       this.this$0 = var1;
  18.       this.val$e = var2;
  19.       this.val$url = var3;
  20.    }
  21.  
  22.    public Object nextElement() {
  23.       if (!this.done) {
  24.          if (this.val$e.hasMoreElements()) {
  25.             return this.val$e.nextElement();
  26.          }
  27.  
  28.          this.done = true;
  29.          if (this.val$url != null) {
  30.             return this.val$url;
  31.          }
  32.       }
  33.  
  34.       throw new NoSuchElementException();
  35.    }
  36.  
  37.    public boolean hasMoreElements() {
  38.       return !this.done && (this.val$e.hasMoreElements() || this.val$url != null);
  39.    }
  40. }
  41.