home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / misc / SoftCache$EntrySet.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.3 KB  |  53 lines

  1. package sun.misc;
  2.  
  3. import java.util.AbstractSet;
  4. import java.util.Iterator;
  5. import java.util.Set;
  6. import sun.misc.SoftCache.Entry;
  7.  
  8. class SoftCache$EntrySet extends AbstractSet {
  9.    Set hashEntries;
  10.    // $FF: synthetic field
  11.    private final SoftCache this$0;
  12.  
  13.    private SoftCache$EntrySet(SoftCache var1) {
  14.       this.this$0 = var1;
  15.       this.hashEntries = SoftCache.access$700(this.this$0).entrySet();
  16.    }
  17.  
  18.    public Iterator iterator() {
  19.       return new SoftCache.1(this);
  20.    }
  21.  
  22.    public boolean isEmpty() {
  23.       return !this.iterator().hasNext();
  24.    }
  25.  
  26.    public int size() {
  27.       int var1 = 0;
  28.       Iterator var2 = this.iterator();
  29.  
  30.       while(var2.hasNext()) {
  31.          ++var1;
  32.          var2.next();
  33.       }
  34.  
  35.       return var1;
  36.    }
  37.  
  38.    public boolean remove(Object var1) {
  39.       SoftCache.access$900(this.this$0);
  40.       return var1 instanceof SoftCache.Entry ? this.hashEntries.remove(Entry.access$1000((SoftCache.Entry)var1)) : false;
  41.    }
  42.  
  43.    // $FF: synthetic method
  44.    static SoftCache access$800(SoftCache$EntrySet var0) {
  45.       return var0.this$0;
  46.    }
  47.  
  48.    // $FF: synthetic method
  49.    SoftCache$EntrySet(SoftCache var1, SoftCache.1 var2) {
  50.       this(var1);
  51.    }
  52. }
  53.