HIT
- is the type of the individual items contained in this result.public class SearchResultBean<HIT> extends Object implements SearchResult<HIT>
SearchResult
.Modifier and Type | Field and Description |
---|---|
private boolean |
complete |
private List<HIT> |
hits |
private static long |
serialVersionUID |
Constructor and Description |
---|
SearchResultBean()
The constructor.
|
SearchResultBean(List<HIT> hitList,
int maximumHitCount)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
List<HIT> |
getHits()
This method gets the
List with all hits returned by this SearchResult . |
boolean |
isComplete()
This method determines if this result holds all hits that matched your
SearchCriteria . |
void |
setComplete(boolean complete) |
void |
setHits(List<HIT> hits) |
private static final long serialVersionUID
private boolean complete
public SearchResultBean()
public SearchResultBean(List<HIT> hitList, int maximumHitCount)
hitList
- is the hit-list
that may return more hits than the given maximumHitCount
.
In that case the hits
will be created as a truncated copy of the given hitList
.
Otherwise getHits()
will return the given hitList
.maximumHitCount
- is the maximum
hit-count
.public boolean isComplete()
SearchResult
SearchCriteria
. Otherwise the
matches have been truncated and SearchResult.getHits()
will return only the amount of hits specified by
maximum hit-count
of your SearchCriteria
even though more hits
are available.isComplete
in interface SearchResult<HIT>
true
if this result is complete, false
if there are more matches available than
contained
in this result.public void setComplete(boolean complete)
complete
- is the complete to setpublic List<HIT> getHits()
SearchResult
List
with all hits returned by this SearchResult
. hit-count
is limited to the maximum hit-count
specified by your SearchCriteria
.getHits
in interface SearchResult<HIT>
List
with all hits.SearchResult.isComplete()
Copyright © 2001–2016 mmm-Team. All rights reserved.