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 / ListResourceBundle$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  986 b   |  45 lines

  1. package java.util;
  2.  
  3. class ListResourceBundle$1 implements Enumeration {
  4.    Object temp;
  5.    // $FF: synthetic field
  6.    private final Enumeration val$myKeys;
  7.    // $FF: synthetic field
  8.    private final Enumeration val$parentKeys;
  9.    // $FF: synthetic field
  10.    private final ListResourceBundle this$0;
  11.  
  12.    ListResourceBundle$1(ListResourceBundle var1, Enumeration var2, Enumeration var3) {
  13.       this.this$0 = var1;
  14.       this.val$myKeys = var2;
  15.       this.val$parentKeys = var3;
  16.       this.temp = null;
  17.    }
  18.  
  19.    public boolean hasMoreElements() {
  20.       if (this.temp == null) {
  21.          this.nextElement();
  22.       }
  23.  
  24.       return this.temp != null;
  25.    }
  26.  
  27.    public Object nextElement() {
  28.       Object var1 = this.temp;
  29.       if (this.val$myKeys.hasMoreElements()) {
  30.          this.temp = this.val$myKeys.nextElement();
  31.       } else {
  32.          this.temp = null;
  33.  
  34.          while(this.temp == null && this.val$parentKeys.hasMoreElements()) {
  35.             this.temp = this.val$parentKeys.nextElement();
  36.             if (ListResourceBundle.access$000(this.this$0).containsKey(this.temp)) {
  37.                this.temp = null;
  38.             }
  39.          }
  40.       }
  41.  
  42.       return var1;
  43.    }
  44. }
  45.