Package se.l4.silo.results
Class EmptyFetchResult<T>
- java.lang.Object
-
- se.l4.silo.results.EmptyFetchResult<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
AutoCloseable,Iterable<T>,FetchResult<T>
public class EmptyFetchResult<T> extends Object implements FetchResult<T>
AFetchResultthat is always empty.- Author:
- Andreas Holstenson
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyFetchResult<?>INSTANCE
-
Method Summary
Modifier and Type Method Description voidclose()longgetLimit()Get the limit used to fetch these results.longgetOffset()Get the offset used to fetch these results.longgetSize()Get the number of returned results.longgetTotal()Get the total number of results available.booleanisEmpty()Check if these results are empty.Iterator<T>iterator()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface se.l4.silo.FetchResult
first, parallelStream, spliterator, stream, transform
-
-
-
-
Field Detail
-
INSTANCE
public static final EmptyFetchResult<?> INSTANCE
-
-
Method Detail
-
getSize
public long getSize()
Description copied from interface:FetchResultGet the number of returned results.- Specified by:
getSizein interfaceFetchResult<T>- Returns:
-
getOffset
public long getOffset()
Description copied from interface:FetchResultGet the offset used to fetch these results.- Specified by:
getOffsetin interfaceFetchResult<T>- Returns:
-
getLimit
public long getLimit()
Description copied from interface:FetchResultGet the limit used to fetch these results.- Specified by:
getLimitin interfaceFetchResult<T>- Returns:
-
getTotal
public long getTotal()
Description copied from interface:FetchResultGet the total number of results available.- Specified by:
getTotalin interfaceFetchResult<T>- Returns:
-
isEmpty
public boolean isEmpty()
Description copied from interface:FetchResultCheck if these results are empty.- Specified by:
isEmptyin interfaceFetchResult<T>- Returns:
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFetchResult<T>
-
-