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.int
getStart()
Returns the start index of the first object of the result list.int
getTotalCount()
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:SearchResult
Returns the object result collection according to the range specified inside the query of this result.- Specified by:
getResult
in interfaceSearchResult
-
getTotalCount
public int getTotalCount()
Description copied from interface:SearchResult
Returns the total hit count of query (without range).- Specified by:
getTotalCount
in interfaceSearchResult
-
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 interfaceSearchResult
-
-