home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / rt.jar / java / util / PropertyResourceBundle$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-23  |  1.1 KB  |  45 lines

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