Class 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.
    • 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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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