public static final class DbxEntry.Folder extends DbxEntry
DbxEntry used to represent folder metadata. Folders
actually only have the same set of fields as DbxEntry.DbxEntry.File, DbxEntry.Folder, DbxEntry.WithChildren, DbxEntry.WithChildrenC<C>| Modifier and Type | Field and Description |
|---|---|
static JsonReader<DbxEntry.Folder> |
Reader |
static long |
serialVersionUID |
iconName, mightHaveThumbnail, name, path, ReaderMaybeDeleted| Constructor and Description |
|---|
DbxEntry.Folder(String path,
String iconName,
boolean mightHaveThumbnail) |
| Modifier and Type | Method and Description |
|---|---|
DbxEntry.File |
asFile()
If this metadata entry is a file, return it as a
DbxEntry.File
instance. |
DbxEntry.Folder |
asFolder()
If this metadata entry is a folder, return it as a
DbxEntry.Folder
instance. |
boolean |
equals(DbxEntry.Folder o) |
boolean |
equals(Object o) |
protected String |
getTypeName() |
int |
hashCode() |
boolean |
isFile()
Whether this metadata is for a file, which can be cast to type
DbxEntry.File. |
boolean |
isFolder()
Whether this metadata is for a folder, which can be cast to type
DbxEntry.Folder. |
dumpFields, partialEquals, partialHashCode, read, readMaybeDeletedtoString, toString, toStringMultiline, toStringMultilinepublic static final long serialVersionUID
public static final JsonReader<DbxEntry.Folder> Reader
public DbxEntry.Folder(String path, String iconName, boolean mightHaveThumbnail)
path - DbxEntry.pathiconName - DbxEntry.iconNamemightHaveThumbnail - DbxEntry.mightHaveThumbnailprotected String getTypeName()
getTypeName in class Dumpablepublic boolean isFolder()
DbxEntryDbxEntry.Folder. (Every metadata object is either for a file or a folder.)public boolean isFile()
DbxEntryDbxEntry.File. (Every metadata object is either for a file or a folder.)public DbxEntry.Folder asFolder()
DbxEntryDbxEntry.Folder
instance. If it's not a folder, return null.public DbxEntry.File asFile()
DbxEntryDbxEntry.File
instance. If it's not a file, return null.public boolean equals(DbxEntry.Folder o)
Copyright © 2014. All rights reserved.