Package com.dropbox.core.v2.files
Class SearchResult
- java.lang.Object
-
- com.dropbox.core.v2.files.SearchResult
-
public class SearchResult extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<SearchMatch>
matches
protected boolean
more
protected long
start
-
Constructor Summary
Constructors Constructor Description SearchResult(java.util.List<SearchMatch> matches, boolean more, long start)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<SearchMatch>
getMatches()
A list (possibly empty) of matches for the query.boolean
getMore()
Used for paging.long
getStart()
Used for paging.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
matches
protected final java.util.List<SearchMatch> matches
-
more
protected final boolean more
-
start
protected final long start
-
-
Constructor Detail
-
SearchResult
public SearchResult(java.util.List<SearchMatch> matches, boolean more, long start)
- Parameters:
matches
- A list (possibly empty) of matches for the query. Must not contain anull
item and not benull
.more
- Used for paging. If true, indicates there is another page of results available that can be fetched by callingDbxUserFilesRequests.search(String,String)
again.start
- Used for paging. Value to set the start argument to when callingDbxUserFilesRequests.search(String,String)
to fetch the next page of results.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getMatches
public java.util.List<SearchMatch> getMatches()
A list (possibly empty) of matches for the query.- Returns:
- value for this field, never
null
.
-
getMore
public boolean getMore()
Used for paging. If true, indicates there is another page of results available that can be fetched by callingDbxUserFilesRequests.search(String,String)
again.- Returns:
- value for this field.
-
getStart
public long getStart()
Used for paging. Value to set the start argument to when callingDbxUserFilesRequests.search(String,String)
to fetch the next page of results.- Returns:
- value for this field.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String 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
-
-