Package com.dropbox.core.v2.files
Class SearchMatchV2
java.lang.Object
com.dropbox.core.v2.files.SearchMatchV2
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<HighlightSpan> protected final SearchMatchTypeV2protected final MetadataV2 -
Constructor Summary
ConstructorsConstructorDescriptionSearchMatchV2(MetadataV2 metadata) NoneSearchMatchV2(MetadataV2 metadata, SearchMatchTypeV2 matchType, List<HighlightSpan> highlightSpans) UsenewBuilder(com.dropbox.core.v2.files.MetadataV2)to create instances of this class without specifying values for all optional fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe list of HighlightSpan determines which parts of the file title should be highlighted.The type of the match.The metadata for the matched file or folder.inthashCode()static SearchMatchV2.BuildernewBuilder(MetadataV2 metadata) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
metadata
-
matchType
-
highlightSpans
-
-
Constructor Details
-
SearchMatchV2
public SearchMatchV2(@Nonnull MetadataV2 metadata, @Nullable SearchMatchTypeV2 matchType, @Nullable List<HighlightSpan> highlightSpans) UsenewBuilder(com.dropbox.core.v2.files.MetadataV2)to create instances of this class without specifying values for all optional fields.- Parameters:
metadata- The metadata for the matched file or folder. Must not benull.matchType- The type of the match.highlightSpans- The list of HighlightSpan determines which parts of the file title should be highlighted. Must not contain anullitem.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
SearchMatchV2
NoneThe default values for unset fields will be used.
- Parameters:
metadata- The metadata for the matched file or folder. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getMetadata
The metadata for the matched file or folder.- Returns:
- value for this field, never
null.
-
getMatchType
The type of the match.- Returns:
- value for this field, or
nullif not present.
-
getHighlightSpans
The list of HighlightSpan determines which parts of the file title should be highlighted.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
metadata- The metadata for the matched file or folder. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
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
-