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
AnEmptyIterable
is just that. Maybe just a touch better-performing thanCollections.EMPTY_SET
since we don't create a newIterator
every 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()
String
toString()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-