home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / util / Collections$SingletonSet$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  938 b   |  32 lines

  1. package java.util;
  2.  
  3. import java.util.Collections.SingletonSet;
  4.  
  5. final class Collections$SingletonSet$1 implements Iterator<E> {
  6.    private boolean hasNext;
  7.    // $FF: synthetic field
  8.    final Collections.SingletonSet this$0;
  9.  
  10.    Collections$SingletonSet$1(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 E next() {
  20.       if (this.hasNext) {
  21.          this.hasNext = false;
  22.          return (E)SingletonSet.access$400(this.this$0);
  23.       } else {
  24.          throw new NoSuchElementException();
  25.       }
  26.    }
  27.  
  28.    public void remove() {
  29.       throw new UnsupportedOperationException();
  30.    }
  31. }
  32.