Package org.ametys.cms.search.cocoon
Class ContentSearchResults.IdSearchResultsIterable
- java.lang.Object
-
- org.ametys.cms.search.cocoon.ContentSearchResults.IdSearchResultsIterable
-
- All Implemented Interfaces:
Iterable<SearchResult<A>>
,SearchResultsIterable<SearchResult<A>>
- Enclosing class:
- ContentSearchResults<A extends AmetysObject>
class ContentSearchResults.IdSearchResultsIterable extends Object implements SearchResultsIterable<SearchResult<A>>
-
-
Field Summary
Fields Modifier and Type Field Description private IdCollectionIterable<A>
_iterable
-
Constructor Summary
Constructors Constructor Description IdSearchResultsIterable(AmetysObjectResolver resolver, List<String> contentIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize()
Returns the number of elements in this iterable.SearchResultsIterator<SearchResult<A>>
iterator()
-
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
-
-
-
-
Field Detail
-
_iterable
private IdCollectionIterable<A extends AmetysObject> _iterable
-
-
Constructor Detail
-
IdSearchResultsIterable
IdSearchResultsIterable(AmetysObjectResolver resolver, List<String> contentIds)
-
-
Method Detail
-
iterator
public SearchResultsIterator<SearchResult<A>> iterator()
- Specified by:
iterator
in interfaceIterable<SearchResult<A extends AmetysObject>>
- Specified by:
iterator
in interfaceSearchResultsIterable<SearchResult<A extends AmetysObject>>
-
getSize
public long getSize()
Description copied from interface:SearchResultsIterable
Returns the number of elements in this iterable.- Specified by:
getSize
in interfaceSearchResultsIterable<SearchResult<A extends AmetysObject>>
- Returns:
- the number of elements in this iterable.
-
-