org.xwiki.extension.repository.result
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 based IterableResult.
- Since:
- 4.0M1
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
iterator
public Iterator<T> iterator()
getSize
public int getSize()
- Returns:
- the number of found extensions
Copyright © 2004-2012 XWiki. All Rights Reserved.