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

  1. package java.util;
  2.  
  3. class Collections$UnmodifiableList extends Collections.UnmodifiableCollection implements List {
  4.    static final long serialVersionUID = -283967356065247728L;
  5.    private List list;
  6.  
  7.    Collections$UnmodifiableList(List var1) {
  8.       super(var1);
  9.       this.list = var1;
  10.    }
  11.  
  12.    public boolean equals(Object var1) {
  13.       return this.list.equals(var1);
  14.    }
  15.  
  16.    public int hashCode() {
  17.       return this.list.hashCode();
  18.    }
  19.  
  20.    public Object get(int var1) {
  21.       return this.list.get(var1);
  22.    }
  23.  
  24.    public Object set(int var1, Object var2) {
  25.       throw new UnsupportedOperationException();
  26.    }
  27.  
  28.    public void add(int var1, Object var2) {
  29.       throw new UnsupportedOperationException();
  30.    }
  31.  
  32.    public Object remove(int var1) {
  33.       throw new UnsupportedOperationException();
  34.    }
  35.  
  36.    public int indexOf(Object var1) {
  37.       return this.list.indexOf(var1);
  38.    }
  39.  
  40.    public int lastIndexOf(Object var1) {
  41.       return this.list.lastIndexOf(var1);
  42.    }
  43.  
  44.    public boolean addAll(int var1, Collection var2) {
  45.       throw new UnsupportedOperationException();
  46.    }
  47.  
  48.    public ListIterator listIterator() {
  49.       return this.listIterator(0);
  50.    }
  51.  
  52.    public ListIterator listIterator(int var1) {
  53.       return new Collections.2(this, var1);
  54.    }
  55.  
  56.    public List subList(int var1, int var2) {
  57.       return new Collections$UnmodifiableList(this.list.subList(var1, var2));
  58.    }
  59.  
  60.    // $FF: synthetic method
  61.    static List access$000(Collections$UnmodifiableList var0) {
  62.       return var0.list;
  63.    }
  64. }
  65.