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$UnmodifiableCollection.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.5 KB  |  74 lines

  1. package java.util;
  2.  
  3. import java.io.Serializable;
  4.  
  5. class Collections$UnmodifiableCollection implements Collection, Serializable {
  6.    private static final long serialVersionUID = 1820017752578914078L;
  7.    // $FF: renamed from: c java.util.Collection
  8.    Collection field_0;
  9.  
  10.    Collections$UnmodifiableCollection(Collection var1) {
  11.       if (var1 == null) {
  12.          throw new NullPointerException();
  13.       } else {
  14.          this.field_0 = var1;
  15.       }
  16.    }
  17.  
  18.    public int size() {
  19.       return this.field_0.size();
  20.    }
  21.  
  22.    public boolean isEmpty() {
  23.       return this.field_0.isEmpty();
  24.    }
  25.  
  26.    public boolean contains(Object var1) {
  27.       return this.field_0.contains(var1);
  28.    }
  29.  
  30.    public Object[] toArray() {
  31.       return this.field_0.toArray();
  32.    }
  33.  
  34.    public Object[] toArray(Object[] var1) {
  35.       return this.field_0.toArray(var1);
  36.    }
  37.  
  38.    public String toString() {
  39.       return this.field_0.toString();
  40.    }
  41.  
  42.    public Iterator iterator() {
  43.       return new Collections.1(this);
  44.    }
  45.  
  46.    public boolean add(Object var1) {
  47.       throw new UnsupportedOperationException();
  48.    }
  49.  
  50.    public boolean remove(Object var1) {
  51.       throw new UnsupportedOperationException();
  52.    }
  53.  
  54.    public boolean containsAll(Collection var1) {
  55.       return this.field_0.containsAll(var1);
  56.    }
  57.  
  58.    public boolean addAll(Collection var1) {
  59.       throw new UnsupportedOperationException();
  60.    }
  61.  
  62.    public boolean removeAll(Collection var1) {
  63.       throw new UnsupportedOperationException();
  64.    }
  65.  
  66.    public boolean retainAll(Collection var1) {
  67.       throw new UnsupportedOperationException();
  68.    }
  69.  
  70.    public void clear() {
  71.       throw new UnsupportedOperationException();
  72.    }
  73. }
  74.