Class EmptyIterable<T>
- java.lang.Object
-
- uk.gov.gchq.gaffer.commonutil.iterable.EmptyIterable<T>
-
- Type Parameters:
T- the type of items in the iterable.
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<T>
public class EmptyIterable<T> extends Object implements Closeable, Iterable<T>
AnEmptyIterableis aCloseableIterablewhich is backed by aEmptyIterator, and contains no objects. This is useful when aIterableis required, but there is no data present.
-
-
Constructor Summary
Constructors Constructor Description EmptyIterable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(Object obj)inthashCode()Iterator<T>iterator()-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-