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
public abstract class AbstractSearchResult<T> extends Object implements IterableResult<T>
Utility base class forIterableResult
implementations.- Since:
- 4.0M1
- Version:
- $Id: 433a7ccd128922a0ff5e8ae44459511e4279b9d3 $
-
-
Constructor Summary
Constructors Constructor Description AbstractSearchResult(int totalHits, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOffset()
int
getTotalHits()
-
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
-
-
-
-
Method Detail
-
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
-
-