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>
AnEmptyIterable
is aCloseable
Iterable
which is backed by aEmptyIterator
, and contains no objects. This is useful when aIterable
is 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 void
close()
boolean
equals(Object obj)
int
hashCode()
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-