home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- import java.io.Serializable;
-
- class Collections$SingletonMap extends AbstractMap implements Serializable {
- // $FF: renamed from: k java.lang.Object
- private final Object field_0;
- // $FF: renamed from: v java.lang.Object
- private final Object field_1;
- private transient Set keySet = null;
- private transient Set entrySet = null;
- private transient Collection values = null;
-
- Collections$SingletonMap(Object var1, Object var2) {
- this.field_0 = var1;
- this.field_1 = var2;
- }
-
- public int size() {
- return 1;
- }
-
- public boolean isEmpty() {
- return false;
- }
-
- public boolean containsKey(Object var1) {
- return Collections.access$100(var1, this.field_0);
- }
-
- public boolean containsValue(Object var1) {
- return Collections.access$100(var1, this.field_1);
- }
-
- public Object get(Object var1) {
- return Collections.access$100(var1, this.field_0) ? this.field_1 : null;
- }
-
- public Set keySet() {
- if (this.keySet == null) {
- this.keySet = Collections.singleton(this.field_0);
- }
-
- return this.keySet;
- }
-
- public Set entrySet() {
- if (this.entrySet == null) {
- this.entrySet = Collections.singleton(new Collections.SingletonMap.ImmutableEntry(this.field_0, this.field_1));
- }
-
- return this.entrySet;
- }
-
- public Collection values() {
- if (this.values == null) {
- this.values = Collections.singleton(this.field_1);
- }
-
- return this.values;
- }
- }
-