Package org.ametys.cms.search.cocoon
Class ContentSearchResults.SearchResultsIteratorWrapper
- java.lang.Object
-
- org.ametys.cms.search.cocoon.ContentSearchResults.SearchResultsIteratorWrapper
-
- All Implemented Interfaces:
Iterator<SearchResult<A>>,SearchResultsIterator<SearchResult<A>>
- Enclosing class:
- ContentSearchResults<A extends AmetysObject>
class ContentSearchResults.SearchResultsIteratorWrapper extends Object implements SearchResultsIterator<SearchResult<A>>
-
-
Field Summary
Fields Modifier and Type Field Description private AmetysObjectIterator<A>_iterator
-
Constructor Summary
Constructors Constructor Description SearchResultsIteratorWrapper(AmetysObjectIterator<A> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()SearchResult<A>next()voidskip(long skipNum)Skip a number of elements in the iterator.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Field Detail
-
_iterator
private AmetysObjectIterator<A extends AmetysObject> _iterator
-
-
Constructor Detail
-
SearchResultsIteratorWrapper
SearchResultsIteratorWrapper(AmetysObjectIterator<A> iterator)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<SearchResult<A extends AmetysObject>>
-
next
public SearchResult<A> next()
- Specified by:
nextin interfaceIterator<SearchResult<A extends AmetysObject>>
-
skip
public void skip(long skipNum)
Description copied from interface:SearchResultsIteratorSkip a number of elements in the iterator.- Specified by:
skipin interfaceSearchResultsIterator<SearchResult<A extends AmetysObject>>- Parameters:
skipNum- the non-negative number of elements to skip
-
-