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>
  • Field Details

    • count

      protected Long count
      The total number of results (when no pager would have been applied)
    • result

      protected List<T> result
  • Constructor Details

    • AbstractSearchResult

      public AbstractSearchResult()
    • AbstractSearchResult

      protected AbstractSearchResult(Long count, List<T> result)
  • Method Details

    • getResult

      public final List<T> getResult()
      Specified by:
      getResult in interface SearchResult<T>
    • setResult

      public final void setResult(List<T> l)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • stream

      public Stream<T> stream()
      Since:
      7.2
    • getCount

      public Long getCount()
      The total number of results (when no pager would have been applied)
      Specified by:
      getCount in interface SearchResult<T>
    • setCount

      public void setCount(Long count)
      The total number of results (when no pager would have been applied)