home *** CD-ROM | disk | FTP | other *** search
- package sun.misc;
-
- import java.util.AbstractSet;
- import java.util.Iterator;
- import java.util.Set;
- import sun.misc.SoftCache.Entry;
-
- class SoftCache$EntrySet extends AbstractSet {
- Set hashEntries;
- // $FF: synthetic field
- final SoftCache this$0;
-
- private SoftCache$EntrySet(SoftCache var1) {
- this.this$0 = var1;
- this.hashEntries = SoftCache.access$700(this.this$0).entrySet();
- }
-
- public Iterator iterator() {
- return new SoftCache.EntrySet.1(this);
- }
-
- public boolean isEmpty() {
- return !this.iterator().hasNext();
- }
-
- public int size() {
- int var1 = 0;
- Iterator var2 = this.iterator();
-
- while(var2.hasNext()) {
- ++var1;
- var2.next();
- }
-
- return var1;
- }
-
- public boolean remove(Object var1) {
- SoftCache.access$800(this.this$0);
- return var1 instanceof SoftCache.Entry ? this.hashEntries.remove(Entry.access$900((SoftCache.Entry)var1)) : false;
- }
-
- // $FF: synthetic method
- SoftCache$EntrySet(SoftCache var1, SoftCache.1 var2) {
- this(var1);
- }
- }
-