Package com.dropbox.core.v2.files
Class SearchV2Result
java.lang.Object
com.dropbox.core.v2.files.SearchV2Result
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSearchV2Result(List<SearchMatchV2> matches, boolean hasMore) NoneSearchV2Result(List<SearchMatchV2> matches, boolean hasMore, String cursor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanPass the cursor intoDbxAppFilesRequests.searchContinueV2(String)to fetch the next page of results.booleanUsed for paging.A list (possibly empty) of matches for the query.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
matches
-
hasMore
protected final boolean hasMore -
cursor
-
-
Constructor Details
-
SearchV2Result
public SearchV2Result(@Nonnull List<SearchMatchV2> matches, boolean hasMore, @Nullable String cursor) - Parameters:
matches- A list (possibly empty) of matches for the query. Must not contain anullitem and not benull.hasMore- Used for paging. If true, indicates there is another page of results available that can be fetched by callingDbxAppFilesRequests.searchContinueV2(String)with the cursor.cursor- Pass the cursor intoDbxAppFilesRequests.searchContinueV2(String)to fetch the next page of results. Must have length of at least 1.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
SearchV2Result
NoneThe default values for unset fields will be used.
- Parameters:
matches- A list (possibly empty) of matches for the query. Must not contain anullitem and not benull.hasMore- Used for paging. If true, indicates there is another page of results available that can be fetched by callingDbxAppFilesRequests.searchContinueV2(String)with the cursor.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getMatches
A list (possibly empty) of matches for the query.- Returns:
- value for this field, never
null.
-
getHasMore
public boolean getHasMore()Used for paging. If true, indicates there is another page of results available that can be fetched by callingDbxAppFilesRequests.searchContinueV2(String)with the cursor.- Returns:
- value for this field.
-
getCursor
Pass the cursor intoDbxAppFilesRequests.searchContinueV2(String)to fetch the next page of results.- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-