home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / util / Collections$UnmodifiableMap.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.9 KB  |  93 lines

  1. package java.util;
  2.  
  3. import java.io.Serializable;
  4.  
  5. class Collections$UnmodifiableMap implements Map, Serializable {
  6.    private static final long serialVersionUID = -1034234728574286014L;
  7.    // $FF: renamed from: m java.util.Map
  8.    private final Map field_0;
  9.    private transient Set keySet = null;
  10.    private transient Set entrySet = null;
  11.    private transient Collection values = null;
  12.  
  13.    Collections$UnmodifiableMap(Map var1) {
  14.       if (var1 == null) {
  15.          throw new NullPointerException();
  16.       } else {
  17.          this.field_0 = var1;
  18.       }
  19.    }
  20.  
  21.    public int size() {
  22.       return this.field_0.size();
  23.    }
  24.  
  25.    public boolean isEmpty() {
  26.       return this.field_0.isEmpty();
  27.    }
  28.  
  29.    public boolean containsKey(Object var1) {
  30.       return this.field_0.containsKey(var1);
  31.    }
  32.  
  33.    public boolean containsValue(Object var1) {
  34.       return this.field_0.containsValue(var1);
  35.    }
  36.  
  37.    public Object get(Object var1) {
  38.       return this.field_0.get(var1);
  39.    }
  40.  
  41.    public Object put(Object var1, Object var2) {
  42.       throw new UnsupportedOperationException();
  43.    }
  44.  
  45.    public Object remove(Object var1) {
  46.       throw new UnsupportedOperationException();
  47.    }
  48.  
  49.    public void putAll(Map var1) {
  50.       throw new UnsupportedOperationException();
  51.    }
  52.  
  53.    public void clear() {
  54.       throw new UnsupportedOperationException();
  55.    }
  56.  
  57.    public Set keySet() {
  58.       if (this.keySet == null) {
  59.          this.keySet = Collections.unmodifiableSet(this.field_0.keySet());
  60.       }
  61.  
  62.       return this.keySet;
  63.    }
  64.  
  65.    public Set entrySet() {
  66.       if (this.entrySet == null) {
  67.          this.entrySet = new Collections.UnmodifiableMap.UnmodifiableEntrySet(this.field_0.entrySet());
  68.       }
  69.  
  70.       return this.entrySet;
  71.    }
  72.  
  73.    public Collection values() {
  74.       if (this.values == null) {
  75.          this.values = Collections.unmodifiableCollection(this.field_0.values());
  76.       }
  77.  
  78.       return this.values;
  79.    }
  80.  
  81.    public boolean equals(Object var1) {
  82.       return this.field_0.equals(var1);
  83.    }
  84.  
  85.    public int hashCode() {
  86.       return this.field_0.hashCode();
  87.    }
  88.  
  89.    public String toString() {
  90.       return this.field_0.toString();
  91.    }
  92. }
  93.