Package com.dropbox.core.v1
Class DbxEntry.WithChildrenC<C>
- java.lang.Object
-
- com.dropbox.core.util.Dumpable
-
- com.dropbox.core.v1.DbxEntry.WithChildrenC<C>
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DbxEntry
public static final class DbxEntry.WithChildrenC<C> extends Dumpable implements java.io.Serializable
The more general case ofDbxEntry.WithChildren
. It's used in theC
-suffixed variants (DbxClientV1.getMetadataWithChildrenC(java.lang.String, boolean, com.dropbox.core.util.Collector<com.dropbox.core.v1.DbxEntry, ? extends C>)
andDbxClientV1.getMetadataWithChildrenIfChanged(java.lang.String, boolean, java.lang.String)
to allow you to process theDbxEntry
values as the come in and aggregate them into your own object (instead of the defaultList
) using a customCollector
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DbxEntry.WithChildrenC.Reader<C>
static class
DbxEntry.WithChildrenC.ReaderMaybeDeleted<C>
-
Field Summary
Fields Modifier and Type Field Description C
children
Ifentry
is a folder, this will contain the metadata of the folder's immediate children.DbxEntry
entry
java.lang.String
hash
Ifentry
is a folder, this will contain a hash that identifies the folder's contents.static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description WithChildrenC(DbxEntry entry, java.lang.String hash, C children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dumpFields(DumpWriter w)
boolean
equals(DbxEntry.WithChildrenC<?> 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
-
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.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(DbxEntry.WithChildrenC<?> o)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
dumpFields
protected void dumpFields(DumpWriter w)
- Specified by:
dumpFields
in classDumpable
-
-