Package com.dropbox.core.v2.files
Class ExportMetadata
- java.lang.Object
-
- com.dropbox.core.v2.files.ExportMetadata
-
public class ExportMetadata extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
exportHash
protected java.lang.String
name
protected long
size
-
Constructor Summary
Constructors Constructor Description ExportMetadata(java.lang.String name, long size)
NoneExportMetadata(java.lang.String name, long size, java.lang.String exportHash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getExportHash()
A hash based on the exported file content.java.lang.String
getName()
The last component of the path (including extension).long
getSize()
The file size in bytes.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
ExportMetadata
public ExportMetadata(java.lang.String name, long size, java.lang.String exportHash)
- Parameters:
name
- The last component of the path (including extension). This never contains a slash. Must not benull
.size
- The file size in bytes.exportHash
- A hash based on the exported file content. This field can be used to verify data integrity. Similar to content hash. For more information see our Content hash page. Must have length of at least 64 and have length of at most 64.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
ExportMetadata
public ExportMetadata(java.lang.String name, long size)
NoneThe default values for unset fields will be used.
- Parameters:
name
- The last component of the path (including extension). This never contains a slash. Must not benull
.size
- The file size in bytes.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getName
public java.lang.String getName()
The last component of the path (including extension). This never contains a slash.- Returns:
- value for this field, never
null
.
-
getSize
public long getSize()
The file size in bytes.- Returns:
- value for this field.
-
getExportHash
public java.lang.String getExportHash()
A hash based on the exported file content. This field can be used to verify data integrity. Similar to content hash. For more information see our Content hash page.- Returns:
- value for this field, or
null
if not present.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.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
-
-