home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- import java.util.TreeMap.SubMap;
-
- class TreeMap$SubMap$EntrySetView extends AbstractSet {
- private transient int size;
- private transient int sizeModCount;
- // $FF: synthetic field
- private final TreeMap.SubMap this$1;
-
- private TreeMap$SubMap$EntrySetView(TreeMap.SubMap var1) {
- this.this$1 = var1;
- this.size = -1;
- }
-
- public int size() {
- if (this.size == -1 || this.sizeModCount != TreeMap.access$1400(SubMap.access$1300(this.this$1))) {
- this.size = 0;
- this.sizeModCount = TreeMap.access$1400(SubMap.access$1300(this.this$1));
- Iterator var1 = this.iterator();
-
- while(var1.hasNext()) {
- ++this.size;
- var1.next();
- }
- }
-
- return this.size;
- }
-
- public boolean isEmpty() {
- return !this.iterator().hasNext();
- }
-
- public boolean contains(Object var1) {
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- Map.Entry var2 = (Map.Entry)var1;
- Object var3 = var2.getKey();
- if (!SubMap.access$1500(this.this$1, var3)) {
- return false;
- } else {
- TreeMap.Entry var4 = TreeMap.access$500(SubMap.access$1300(this.this$1), var3);
- return var4 != null && TreeMap.access$300(var4.getValue(), var2.getValue());
- }
- }
- }
-
- public boolean remove(Object var1) {
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- Map.Entry var2 = (Map.Entry)var1;
- Object var3 = var2.getKey();
- if (!SubMap.access$1500(this.this$1, var3)) {
- return false;
- } else {
- TreeMap.Entry var4 = TreeMap.access$500(SubMap.access$1300(this.this$1), var3);
- if (var4 != null && TreeMap.access$300(var4.getValue(), var2.getValue())) {
- TreeMap.access$400(SubMap.access$1300(this.this$1), var4);
- return true;
- } else {
- return false;
- }
- }
- }
- }
-
- public Iterator iterator() {
- return new TreeMap.Iterator(SubMap.access$1300(this.this$1), SubMap.access$1600(this.this$1) ? TreeMap.access$100(SubMap.access$1300(this.this$1)) : TreeMap.access$800(SubMap.access$1300(this.this$1), SubMap.access$1700(this.this$1)), SubMap.access$1800(this.this$1) ? null : TreeMap.access$800(SubMap.access$1300(this.this$1), SubMap.access$1900(this.this$1)));
- }
-
- // $FF: synthetic method
- TreeMap$SubMap$EntrySetView(TreeMap.SubMap var1, TreeMap.1 var2) {
- this(var1);
- }
- }
-