org.jjoost.collections.iters
Class EmptyIterator<E>

java.lang.Object
  extended by org.jjoost.collections.iters.EmptyIterator<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
java.util.Iterator<E>

public final class EmptyIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>

This class creates an Iterable (i.e. a class with an iterator() method) from the supplied array

Author:
b.elliottsmith

Constructor Summary
EmptyIterator()
           
 
Method Summary
static
<E> EmptyIterator<E>
get()
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyIterator

public EmptyIterator()
Method Detail

get

public static <E> EmptyIterator<E> get()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<E>

next

public E next()
Specified by:
next in interface java.util.Iterator<E>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<E>