org.zkoss.util
Class CollectionsX.OneIterator

java.lang.Object
  extended by org.zkoss.util.CollectionsX.OneIterator
All Implemented Interfaces:
Iterator
Enclosing class:
CollectionsX

public static final class CollectionsX.OneIterator
extends Object
implements Iterator

An iterator that iterates one element.


Constructor Summary
CollectionsX.OneIterator(Object one)
           
 
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
 

Constructor Detail

CollectionsX.OneIterator

public CollectionsX.OneIterator(Object one)
Method Detail

hasNext

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

next

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

remove

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


Copyright © 2012. All Rights Reserved.