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 theDbxEntryvalues 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 classDbxEntry.WithChildrenC.Reader<C>static classDbxEntry.WithChildrenC.ReaderMaybeDeleted<C>
-
Field Summary
Fields Modifier and Type Field Description CchildrenIfentryis a folder, this will contain the metadata of the folder's immediate children.DbxEntryentryjava.lang.StringhashIfentryis a folder, this will contain a hash that identifies the folder's contents.static longserialVersionUID
-
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 voiddumpFields(DumpWriter w)booleanequals(DbxEntry.WithChildrenC<?> o)booleanequals(java.lang.Object o)inthashCode()-
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
Ifentryis 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:
equalsin classjava.lang.Object
-
equals
public boolean equals(DbxEntry.WithChildrenC<?> o)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
dumpFields
protected void dumpFields(DumpWriter w)
- Specified by:
dumpFieldsin classDumpable
-
-