Package com.dropbox.core.v1
Class DbxEntry.WithChildren
- java.lang.Object
-
- com.dropbox.core.util.Dumpable
-
- com.dropbox.core.v1.DbxEntry.WithChildren
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DbxEntry
public static final class DbxEntry.WithChildren extends Dumpable implements java.io.Serializable
Holds the metadata for a file or folder; if it's a folder, we also store the folder's hash and the metadata of its immediate children.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<DbxEntry>
children
Ifentry
is a folder, this will contain the metadata of the folder's immediate children.DbxEntry
entry
The metadata for the base file or folder.java.lang.String
hash
Ifentry
is a folder, this will contain a hash that identifies the folder's contents.static JsonReader<DbxEntry.WithChildren>
Reader
static JsonReader<DbxEntry.WithChildren>
ReaderMaybeDeleted
static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description WithChildren(DbxEntry entry, java.lang.String hash, java.util.List<DbxEntry> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dumpFields(DumpWriter w)
boolean
equals(DbxEntry.WithChildren o)
boolean
equals(java.lang.Object o)
int
hashCode()
-
Methods inherited from class com.dropbox.core.util.Dumpable
getTypeName, toString, toString, toStringMultiline, toStringMultiline
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
entry
public final DbxEntry entry
The metadata for the base file or folder.
-
hash
public final java.lang.String hash
Ifentry
is a folder, this will contain a hash that identifies the folder's contents. This value can be used withDbxClientV1.getMetadataWithChildrenIfChanged(java.lang.String, boolean, java.lang.String)
to void downloading the folder contents if they havne't changed.
-
children
public final java.util.List<DbxEntry> children
Ifentry
is a folder, this will contain the metadata of the folder's immediate children. If it's not a folder, this will benull
.
-
Reader
public static final JsonReader<DbxEntry.WithChildren> Reader
-
ReaderMaybeDeleted
public static final JsonReader<DbxEntry.WithChildren> ReaderMaybeDeleted
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(DbxEntry.WithChildren o)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
dumpFields
protected void dumpFields(DumpWriter w)
- Specified by:
dumpFields
in classDumpable
-
-