Class StandardSearchResult<E>

    • Constructor Detail

      • StandardSearchResult

        public StandardSearchResult​(java.util.List<E> list,
                                    int totalcount,
                                    int requestedstart,
                                    int requestedcount)
    • Method Detail

      • getCount

        public int getCount()
        Description copied from interface: SearchResult
        Gets the size of result collection with respect to specified range.
        Specified by:
        getCount in interface SearchResult<E>
      • getTotalCount

        public int getTotalCount()
        Description copied from interface: SearchResult
        Gets overall count of search result without paying respect to specified search range. Result collection size will be lower or same.
        Specified by:
        getTotalCount in interface SearchResult<E>
      • getOriginalResultList

        public java.util.List<E> getOriginalResultList()
      • getResult

        public java.util.List<E> getResult()
        Description copied from interface: SearchResult
        Gets the search result. Returned collection uses lazy translation approach, on first access on an collection element the element will be translated to an item. In case the item was removed between gathering of search result and translation of specific element the returned collection will have a null value at this position.
        Specified by:
        getResult in interface SearchResult<E>
      • isFromCache

        public boolean isFromCache()
      • getUnitHash

        public int getUnitHash()
      • setUnitHash

        public void setUnitHash​(int hash)
      • setFromCache

        public void setFromCache​(boolean fromCache)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object