com.sun.xml.bind.util
Class EmptyIterator

java.lang.Object
  extended by com.sun.xml.bind.util.EmptyIterator
All Implemented Interfaces:
Iterator

public final class EmptyIterator
extends Object
implements Iterator

Iterator over an empty list.

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Field Summary
static Iterator theInstance
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theInstance

public static final Iterator theInstance
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator


Copyright © 2014 Oracle Corporation. All Rights Reserved.