Class AbstractSearchResult<T>
java.lang.Object
org.xwiki.extension.repository.result.AbstractSearchResult<T>
- Type Parameters:
T
- the type
- All Implemented Interfaces:
Iterable<T>
,IterableResult<T>
- Direct Known Subclasses:
CollectionIterableResult
Utility base class for
IterableResult
implementations.- Since:
- 4.0M1
- Version:
- $Id: 433a7ccd128922a0ff5e8ae44459511e4279b9d3 $
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.xwiki.extension.repository.result.IterableResult
getSize
-
Constructor Details
-
AbstractSearchResult
public AbstractSearchResult(int totalHits, int offset) - Parameters:
totalHits
- the total number of possible results without offset or maximum results limitsoffset
- the index in the total number of possible search result where this extract starts
-
-
Method Details
-
getTotalHits
public int getTotalHits()- Specified by:
getTotalHits
in interfaceIterableResult<T>
- Returns:
- the total number of possible results without offset or maximum results limits
-
getOffset
public int getOffset()- Specified by:
getOffset
in interfaceIterableResult<T>
- Returns:
- the index in the total number of possible search result where this extract starts
-