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 / ServiceLoader$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.3 KB  |  25 lines

  1. package java.util;
  2.  
  3. final class ServiceLoader$1 implements Iterator<S> {
  4.    Iterator<Map.Entry<String, S>> knownProviders;
  5.    // $FF: synthetic field
  6.    final ServiceLoader this$0;
  7.  
  8.    ServiceLoader$1(ServiceLoader var1) {
  9.       this.this$0 = var1;
  10.       this.knownProviders = ServiceLoader.access$300(this.this$0).entrySet().iterator();
  11.    }
  12.  
  13.    public boolean hasNext() {
  14.       return this.knownProviders.hasNext() ? true : ServiceLoader.access$500(this.this$0).hasNext();
  15.    }
  16.  
  17.    public S next() {
  18.       return (S)(this.knownProviders.hasNext() ? ((Map.Entry)this.knownProviders.next()).getValue() : ServiceLoader.access$500(this.this$0).next());
  19.    }
  20.  
  21.    public void remove() {
  22.       throw new UnsupportedOperationException();
  23.    }
  24. }
  25.