home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- import java.util.WeakHashMap.WeakKey;
-
- class WeakHashMap$EntrySet extends AbstractSet {
- Set hashEntrySet;
- // $FF: synthetic field
- private final WeakHashMap this$0;
-
- private WeakHashMap$EntrySet(WeakHashMap var1) {
- this.this$0 = var1;
- this.hashEntrySet = WeakHashMap.access$200(this.this$0).entrySet();
- }
-
- public Iterator iterator() {
- return new WeakHashMap.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) {
- WeakHashMap.access$300(this.this$0);
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- Map.Entry var2 = (Map.Entry)var1;
- Object var3 = var2.getValue();
- WeakHashMap.WeakKey var4 = WeakKey.access$000(var2.getKey());
- Object var5 = WeakHashMap.access$200(this.this$0).get(var4);
- if (var5 == null ? var3 == null && WeakHashMap.access$200(this.this$0).containsKey(var4) : var5.equals(var3)) {
- WeakHashMap.access$200(this.this$0).remove(var4);
- return true;
- } else {
- return false;
- }
- }
- }
-
- public int hashCode() {
- int var1 = 0;
-
- for(Map.Entry var3 : this.hashEntrySet) {
- WeakHashMap.WeakKey var4 = (WeakHashMap.WeakKey)var3.getKey();
- if (var4 != null) {
- Object var5;
- var1 += var4.hashCode() ^ ((var5 = var3.getValue()) == null ? 0 : var5.hashCode());
- }
- }
-
- return var1;
- }
-
- // $FF: synthetic method
- WeakHashMap$EntrySet(WeakHashMap var1, WeakHashMap.1 var2) {
- this(var1);
- }
- }
-