Class CollectionIterableResult<T>
- java.lang.Object
-
- org.xwiki.extension.repository.result.AbstractSearchResult<T>
-
- org.xwiki.extension.repository.result.CollectionIterableResult<T>
-
- Type Parameters:
T
- the type
- All Implemented Interfaces:
Iterable<T>
,IterableResult<T>
public class CollectionIterableResult<T> extends AbstractSearchResult<T>
A simple collection basedIterableResult
.- Since:
- 4.0M1
- Version:
- $Id: 9a5c9821d8d79b7cead8a15db63427d93e8e9e8f $
-
-
Constructor Summary
Constructors Constructor Description CollectionIterableResult(int totalHits, int offset, Collection<T> result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
Iterator<T>
iterator()
-
Methods inherited from class org.xwiki.extension.repository.result.AbstractSearchResult
getOffset, 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, spliterator
-
-
-
-
Constructor Detail
-
CollectionIterableResult
public CollectionIterableResult(int totalHits, int offset, Collection<T> result)
- 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 startsresult
- the actual results
-
-