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 java.lang.Object implements SearchResult
Default implementation of search result. Simply holds the specified result list, start index and total count.
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchResult(java.util.List<ResultObject> result, int start, int totalCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ResultObject>getResult()Returns the object result collection according to the range specified inside the query of this result.intgetStart()Returns the start index of the first object of the result list.intgetTotalCount()Returns the total hit count of query (without range).
-
-
-
Constructor Detail
-
DefaultSearchResult
public DefaultSearchResult(java.util.List<ResultObject> result, int start, int totalCount)
-
-
Method Detail
-
getResult
public java.util.List<ResultObject> getResult()
Description copied from interface:SearchResultReturns the object result collection according to the range specified inside the query of this result.- Specified by:
getResultin interfaceSearchResult
-
getTotalCount
public int getTotalCount()
Description copied from interface:SearchResultReturns the total hit count of query (without range).- Specified by:
getTotalCountin interfaceSearchResult
-
getStart
public int getStart()
Description copied from interface:SearchResultReturns the start index of the first object of the result list.- Specified by:
getStartin interfaceSearchResult
-
-