public class EmptyPagingResults<R> extends Object implements PagingResults<R>
PagingResults
, used when you know
you can short circuit a query when no results are found.Constructor and Description |
---|
EmptyPagingResults() |
Modifier and Type | Method and Description |
---|---|
List<R> |
getPage()
Returns an empty page
|
String |
getQueryExecutionId()
There is no unique query ID, as no query was done
|
Pair<Integer,Integer> |
getTotalResultCount()
There are no results
|
boolean |
hasMoreItems()
No more items remain
|
public List<R> getPage()
getPage
in interface PagingResults<R>
public boolean hasMoreItems()
hasMoreItems
in interface PagingResults<R>
public Pair<Integer,Integer> getTotalResultCount()
getTotalResultCount
in interface PagingResults<R>
public String getQueryExecutionId()
getQueryExecutionId
in interface PagingResults<R>
Copyright © 2005–2019 Alfresco Software. All rights reserved.