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$EmptyMap.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  978 b   |  54 lines

  1. package java.util;
  2.  
  3. import java.io.Serializable;
  4.  
  5. class Collections$EmptyMap extends AbstractMap implements Serializable {
  6.    private Collections$EmptyMap() {
  7.    }
  8.  
  9.    public int size() {
  10.       return 0;
  11.    }
  12.  
  13.    public boolean isEmpty() {
  14.       return true;
  15.    }
  16.  
  17.    public boolean containsKey(Object var1) {
  18.       return false;
  19.    }
  20.  
  21.    public boolean containsValue(Object var1) {
  22.       return false;
  23.    }
  24.  
  25.    public Object get(Object var1) {
  26.       return null;
  27.    }
  28.  
  29.    public Set keySet() {
  30.       return Collections.EMPTY_SET;
  31.    }
  32.  
  33.    public Collection values() {
  34.       return Collections.EMPTY_SET;
  35.    }
  36.  
  37.    public Set entrySet() {
  38.       return Collections.EMPTY_SET;
  39.    }
  40.  
  41.    public boolean equals(Object var1) {
  42.       return var1 instanceof Map && ((Map)var1).size() == 0;
  43.    }
  44.  
  45.    public int hashCode() {
  46.       return 0;
  47.    }
  48.  
  49.    // $FF: synthetic method
  50.    Collections$EmptyMap(Collections.1 var1) {
  51.       this();
  52.    }
  53. }
  54.