public class SearchV2Result
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cursor |
protected boolean |
hasMore |
protected java.util.List<SearchMatchV2> |
matches |
Constructor and Description |
---|
SearchV2Result(java.util.List<SearchMatchV2> matches,
boolean hasMore)
None
|
SearchV2Result(java.util.List<SearchMatchV2> matches,
boolean hasMore,
java.lang.String cursor) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCursor()
Pass the cursor into
DbxUserFilesRequests.searchContinueV2(String) to fetch the next page of
results. |
boolean |
getHasMore()
Used for paging.
|
java.util.List<SearchMatchV2> |
getMatches()
A list (possibly empty) of matches for the query.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.util.List<SearchMatchV2> matches
protected final boolean hasMore
protected final java.lang.String cursor
public SearchV2Result(java.util.List<SearchMatchV2> matches, boolean hasMore, java.lang.String cursor)
matches
- A list (possibly empty) of matches for the query. Must
not contain a null
item and not be null
.hasMore
- Used for paging. If true, indicates there is another page
of results available that can be fetched by calling DbxUserFilesRequests.searchContinueV2(String)
with the cursor.cursor
- Pass the cursor into DbxUserFilesRequests.searchContinueV2(String)
to fetch the next page
of results. Must have length of at least 1.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SearchV2Result(java.util.List<SearchMatchV2> matches, boolean hasMore)
The default values for unset fields will be used.
matches
- A list (possibly empty) of matches for the query. Must
not contain a null
item and not be null
.hasMore
- Used for paging. If true, indicates there is another page
of results available that can be fetched by calling DbxUserFilesRequests.searchContinueV2(String)
with the cursor.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.util.List<SearchMatchV2> getMatches()
null
.public boolean getHasMore()
DbxUserFilesRequests.searchContinueV2(String)
with the cursor.public java.lang.String getCursor()
DbxUserFilesRequests.searchContinueV2(String)
to fetch the next page of
results.null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.