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

  1. package java.util;
  2.  
  3. import java.util.Collections.SingletonSet;
  4.  
  5. class Collections$5 implements Iterator {
  6.    private boolean hasNext;
  7.    // $FF: synthetic field
  8.    private final Collections.SingletonSet this$0;
  9.  
  10.    Collections$5(Collections.SingletonSet var1) {
  11.       this.this$0 = var1;
  12.       this.hasNext = true;
  13.    }
  14.  
  15.    public boolean hasNext() {
  16.       return this.hasNext;
  17.    }
  18.  
  19.    public Object next() {
  20.       if (this.hasNext) {
  21.          this.hasNext = false;
  22.          return SingletonSet.access$500(this.this$0);
  23.       } else {
  24.          throw new NoSuchElementException();
  25.       }
  26.    }
  27.  
  28.    public void remove() {
  29.       throw new UnsupportedOperationException();
  30.    }
  31. }
  32.