Class PropertyField
java.lang.Object
com.dropbox.core.v2.fileproperties.PropertyField
Raw key/value data to be associated with a Dropbox file. Property fields are
added to Dropbox files as a
PropertyGroup.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPropertyField(String name, String value) Raw key/value data to be associated with a Dropbox file. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Key of the property field associated with a file and template.getValue()Value of the property field associated with a file and template.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
name
-
value
-
-
Constructor Details
-
PropertyField
Raw key/value data to be associated with a Dropbox file. Property fields are added to Dropbox files as aPropertyGroup.- Parameters:
name- Key of the property field associated with a file and template. Keys can be up to 256 bytes. Must not benull.value- Value of the property field associated with a file and template. Values can be up to 1024 bytes. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
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
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() -
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
-