public class ExportMetadata
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
exportHash |
protected java.lang.String |
name |
protected long |
size |
Constructor and Description |
---|
ExportMetadata(java.lang.String name,
long size)
None
|
ExportMetadata(java.lang.String name,
long size,
java.lang.String exportHash) |
Modifier and Type | Method and 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.
|
protected final java.lang.String name
protected final long size
protected final java.lang.String exportHash
public ExportMetadata(java.lang.String name, long size, java.lang.String exportHash)
name
- The last component of the path (including extension). This
never contains a slash. Must not be null
.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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public ExportMetadata(java.lang.String name, long size)
The default values for unset fields will be used.
name
- The last component of the path (including extension). This
never contains a slash. Must not be null
.size
- The file size in bytes.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getName()
null
.public long getSize()
public java.lang.String getExportHash()
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.