org.apache.myfaces.shared_tomahawk.util
Class NullIterator<T>

java.lang.Object
  extended by org.apache.myfaces.shared_tomahawk.util.NullIterator<T>
All Implemented Interfaces:
Iterator<T>

public final class NullIterator<T>
extends Object
implements Iterator<T>

Iterator without elements

Version:
$Revision: 1187700 $ $Date: 2011-10-22 07:19:37 -0500 (Sat, 22 Oct 2011) $
Author:
Anton Koinov (latest modification by $Author: bommel $)

Constructor Summary
NullIterator()
           
 
Method Summary
 boolean hasNext()
           
static
<T> Iterator<T>
instance()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullIterator

public NullIterator()
Method Detail

instance

public static final <T> Iterator<T> instance()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.