public class SearchResult extends Object
Modifier and Type | Field and Description |
---|---|
protected List<SearchMatch> |
matches |
protected boolean |
more |
protected long |
start |
Constructor and Description |
---|
SearchResult(List<SearchMatch> matches,
boolean more,
long start) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<SearchMatch> |
getMatches()
A list (possibly empty) of matches for the query.
|
boolean |
getMore()
Used for paging.
|
long |
getStart()
Used for paging.
|
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final List<SearchMatch> matches
protected final boolean more
protected final long start
public SearchResult(List<SearchMatch> matches, boolean more, long start)
matches
- A list (possibly empty) of matches for the query. Must
not contain a null
item and not be null
.more
- Used for paging. If true, indicates there is another page of
results available that can be fetched by calling DbxUserFilesRequests.search(String,String)
again.start
- Used for paging. Value to set the start argument to when
calling DbxUserFilesRequests.search(String,String)
to fetch
the next page of results.IllegalArgumentException
- If any argument does not meet its
preconditions.public List<SearchMatch> getMatches()
null
.public boolean getMore()
DbxUserFilesRequests.search(String,String)
again.public long getStart()
DbxUserFilesRequests.search(String,String)
to fetch the next page of
results.public String toStringMultiline()
The returned String may contain newlines.