public class SearchMatchV2
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<HighlightSpan> |
highlightSpans |
protected MetadataV2 |
metadata |
Constructor and Description |
---|
SearchMatchV2(MetadataV2 metadata)
None
|
SearchMatchV2(MetadataV2 metadata,
java.util.List<HighlightSpan> highlightSpans) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<HighlightSpan> |
getHighlightSpans()
The list of HighlightSpan determines which parts of the file title should
be highlighted.
|
MetadataV2 |
getMetadata()
The metadata for the matched file or folder.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final MetadataV2 metadata
protected final java.util.List<HighlightSpan> highlightSpans
public SearchMatchV2(MetadataV2 metadata, java.util.List<HighlightSpan> highlightSpans)
metadata
- The metadata for the matched file or folder. Must not be
null
.highlightSpans
- The list of HighlightSpan determines which parts
of the file title should be highlighted. Must not contain a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SearchMatchV2(MetadataV2 metadata)
The default values for unset fields will be used.
metadata
- The metadata for the matched file or folder. Must not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MetadataV2 getMetadata()
null
.public java.util.List<HighlightSpan> getHighlightSpans()
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.