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

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

public final class EmptyIterable<E>
extends java.lang.Object
implements java.lang.Iterable<E>

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

Author:
b.elliottsmith

Constructor Summary
EmptyIterable()
           
 
Method Summary
static
<E> EmptyIterable<E>
get()
           
 java.util.Iterator<E> iterator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyIterable

public EmptyIterable()
Method Detail

get

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

iterator

public java.util.Iterator<E> iterator()
Specified by:
iterator in interface java.lang.Iterable<E>