Package nl.vpro.domain.media.search
Class AbstractSearchResult<T>
- java.lang.Object
-
- nl.vpro.domain.media.search.AbstractSearchResult<T>
-
- All Implemented Interfaces:
Iterable<T>
,SearchResult<T>
- Direct Known Subclasses:
LocationSearchResult
,MediaSearchResult
,ScheduleSearchResult
public abstract class AbstractSearchResult<T> extends Object implements SearchResult<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractSearchResult()
protected
AbstractSearchResult(Long count, List<T> result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getCount()
The total number of results (when no pager would have been applied)List<T>
getResult()
void
setCount(Long count)
The total number of results (when no pager would have been applied)void
setResult(List<T> l)
Stream<T>
stream()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface nl.vpro.domain.media.search.SearchResult
iterator, size
-
-
-
-
Method Detail
-
getResult
public final List<T> getResult()
- Specified by:
getResult
in interfaceSearchResult<T>
-
getCount
public Long getCount()
The total number of results (when no pager would have been applied)- Specified by:
getCount
in interfaceSearchResult<T>
-
setCount
public void setCount(Long count)
The total number of results (when no pager would have been applied)
-
-