Package de.hybris.platform.util
Class StandardSearchResult<E>
- java.lang.Object
-
- de.hybris.platform.util.StandardSearchResult<E>
-
- All Implemented Interfaces:
SearchResult<E>,java.io.Serializable
- Direct Known Subclasses:
SQLSearchResult
public class StandardSearchResult<E> extends java.lang.Object implements SearchResult<E>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StandardSearchResult(java.util.List<E> list, int totalcount, int requestedstart, int requestedcount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetCount()Gets the size of result collection with respect to specified range.java.util.List<E>getOriginalResultList()intgetRequestedCount()Gets specified result count.intgetRequestedStart()Gets specified start index.java.util.List<E>getResult()Gets the search result.intgetTotalCount()Gets overall count of search result without paying respect to specified search range.intgetUnitHash()inthashCode()booleanisFromCache()voidsetFromCache(boolean fromCache)voidsetUnitHash(int hash)java.lang.StringtoString()
-
-
-
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:SearchResultGets the size of result collection with respect to specified range.- Specified by:
getCountin interfaceSearchResult<E>
-
getTotalCount
public int getTotalCount()
Description copied from interface:SearchResultGets overall count of search result without paying respect to specified search range. Result collection size will be lower or same.- Specified by:
getTotalCountin interfaceSearchResult<E>
-
getOriginalResultList
public java.util.List<E> getOriginalResultList()
-
getResult
public java.util.List<E> getResult()
Description copied from interface:SearchResultGets 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 anullvalue at this position.- Specified by:
getResultin interfaceSearchResult<E>
-
getRequestedStart
public int getRequestedStart()
Description copied from interface:SearchResultGets specified start index.- Specified by:
getRequestedStartin interfaceSearchResult<E>
-
getRequestedCount
public int getRequestedCount()
Description copied from interface:SearchResultGets specified result count.- Specified by:
getRequestedCountin interfaceSearchResult<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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-