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 |
---|
Folder(java.lang.String path,
java.lang.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(java.lang.Object o) |
protected java.lang.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, readMaybeDeleted
toString, toString, toStringMultiline, toStringMultiline
public static final long serialVersionUID
public static final JsonReader<DbxEntry.Folder> Reader
public Folder(java.lang.String path, java.lang.String iconName, boolean mightHaveThumbnail)
path
- DbxEntry.path
iconName
- DbxEntry.iconName
mightHaveThumbnail
- DbxEntry.mightHaveThumbnail
protected java.lang.String getTypeName()
getTypeName
in class Dumpable
public boolean isFolder()
DbxEntry
DbxEntry.Folder
. (Every metadata object is either for a file or a folder.)public boolean isFile()
DbxEntry
DbxEntry.File
. (Every metadata object is either for a file or a folder.)public DbxEntry.Folder asFolder()
DbxEntry
DbxEntry.Folder
instance. If it's not a folder, return null
.public DbxEntry.File asFile()
DbxEntry
DbxEntry.File
instance. If it's not a file, return null
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(DbxEntry.Folder o)
public int hashCode()
hashCode
in class java.lang.Object