E - the type of elements returned by the iterable's iteratorpublic final class EmptyIterable<E>
extends java.lang.Object
implements java.lang.Iterable<E>, java.io.Serializable
EmptyIterable is just that. Maybe just a touch better-performing than Collections.EMPTY_SET since we don't create a new Iterator every time iterator() is called. (Not sure why they do that....)EmptyIterator,
EmptyListIterable,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
static <T> java.lang.Iterable<T> |
instance()
Return the singleton instance of this
Iterable. |
java.util.Iterator<E> |
iterator() |
java.lang.String |
toString() |
public static <T> java.lang.Iterable<T> instance()
Iterable.public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>public java.lang.String toString()
toString in class java.lang.Object