Package org.opennms.netmgt.search.api
Class SearchResult
- java.lang.Object
- 
- org.opennms.netmgt.search.api.SearchResult
 
- 
 public class SearchResult extends java.lang.ObjectRepresents the complete result set of a search for a givenSearchContext.- Author:
- mvrueden
 
- 
- 
Field SummaryFields Modifier and Type Field Description static SearchResultEMPTY
 - 
Constructor SummaryConstructors Constructor Description SearchResult(java.lang.String context)SearchResult(SearchContext searchContext)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(SearchResultItem item)SearchContextgetContext()java.util.List<SearchResultItem>getResults()booleanhasMore()booleanisEmpty()booleanisMore()voidsetMore(boolean more)SearchResultwithMore(boolean hasMore)SearchResultwithMore(java.util.Collection<?> totalList, java.util.Collection<?> subList)SearchResultwithResults(java.util.List<SearchResultItem> searchResultItems)
 
- 
- 
- 
Field Detail- 
EMPTYpublic static SearchResult EMPTY 
 
- 
 - 
Constructor Detail- 
SearchResultpublic SearchResult(java.lang.String context) 
 - 
SearchResultpublic SearchResult(SearchContext searchContext) 
 
- 
 - 
Method Detail- 
addItempublic void addItem(SearchResultItem item) 
 - 
getContextpublic SearchContext getContext() 
 - 
hasMorepublic boolean hasMore() 
 - 
getResultspublic java.util.List<SearchResultItem> getResults() 
 - 
isEmptypublic boolean isEmpty() 
 - 
setMorepublic void setMore(boolean more) 
 - 
isMorepublic boolean isMore() 
 - 
withResultspublic SearchResult withResults(java.util.List<SearchResultItem> searchResultItems) 
 - 
withMorepublic SearchResult withMore(boolean hasMore) 
 - 
withMorepublic SearchResult withMore(java.util.Collection<?> totalList, java.util.Collection<?> subList) 
 
- 
 
-