Class DefaultSearchResult

java.lang.Object
de.hybris.platform.cockpit.model.search.impl.DefaultSearchResult
All Implemented Interfaces:
SearchResult
Direct Known Subclasses:
DefaultExtendedSearchResult

public class DefaultSearchResult extends Object implements SearchResult
Default implementation of search result. Simply holds the specified result list, start index and total count.
  • Constructor Details

    • DefaultSearchResult

      public DefaultSearchResult(List<ResultObject> result, int start, int totalCount)
  • Method Details

    • getResult

      public List<ResultObject> getResult()
      Description copied from interface: SearchResult
      Returns the object result collection according to the range specified inside the query of this result.
      Specified by:
      getResult in interface SearchResult
    • getTotalCount

      public int getTotalCount()
      Description copied from interface: SearchResult
      Returns the total hit count of query (without range).
      Specified by:
      getTotalCount in interface SearchResult
    • getStart

      public int getStart()
      Description copied from interface: SearchResult
      Returns the start index of the first object of the result list.
      Specified by:
      getStart in interface SearchResult