Class PropertyField

java.lang.Object
com.dropbox.core.v2.fileproperties.PropertyField

public class PropertyField extends Object
Raw key/value data to be associated with a Dropbox file. Property fields are added to Dropbox files as a PropertyGroup.
  • Field Details

    • name

      @Nonnull protected final String name
    • value

      @Nonnull protected final String value
  • Constructor Details

    • PropertyField

      public PropertyField(@Nonnull String name, @Nonnull String value)
      Raw key/value data to be associated with a Dropbox file. Property fields are added to Dropbox files as a PropertyGroup.
      Parameters:
      name - Key of the property field associated with a file and template. Keys can be up to 256 bytes. Must not be null.
      value - Value of the property field associated with a file and template. Values can be up to 1024 bytes. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getName

      @Nonnull public String getName()
      Key of the property field associated with a file and template. Keys can be up to 256 bytes.
      Returns:
      value for this field, never null.
    • getValue

      @Nonnull public String getValue()
      Value of the property field associated with a file and template. Values can be up to 1024 bytes.
      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