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 / text / resources / DateFormatZoneData$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  990 b   |  47 lines

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