Class SearchMatch

java.lang.Object
com.dropbox.core.v2.files.SearchMatch

public class SearchMatch extends Object
  • Field Details

    • matchType

      @Nonnull protected final SearchMatchType matchType
    • metadata

      @Nonnull protected final Metadata metadata
  • Constructor Details

    • SearchMatch

      public SearchMatch(@Nonnull SearchMatchType matchType, @Nonnull Metadata metadata)
      Parameters:
      matchType - The type of the match. Must not be null.
      metadata - The metadata for the matched file or folder. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getMatchType

      @Nonnull public SearchMatchType getMatchType()
      The type of the match.
      Returns:
      value for this field, never null.
    • getMetadata

      @Nonnull public Metadata getMetadata()
      The metadata for the matched file or folder.
      Returns:
      value for this field, never null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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