Class EmptyIterable<E>
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.utility.iterable.EmptyIterable<E>
-
- Type Parameters:
E- the type of elements returned by the iterable's iterator
- All Implemented Interfaces:
Serializable,Iterable<E>
public final class EmptyIterable<E> extends Object implements Iterable<E>, Serializable
AnEmptyIterableis just that. Maybe just a touch better-performing thanCollections.EMPTY_SETsince we don't create a newIteratorevery timeiterator()is called. (Not sure why they do that....)- Since:
- 2.5
- Version:
- 2.5
- See Also:
EmptyIterator, EmptyListIterable, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Iterable<T>instance()Return the singleton instance of thisIterable.Iterator<E>iterator()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-