Package com.dropbox.core.v1
Class DbxEntry.Folder
- java.lang.Object
-
- com.dropbox.core.util.Dumpable
-
- com.dropbox.core.v1.DbxEntry
-
- com.dropbox.core.v1.DbxEntry.Folder
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DbxEntry
public static final class DbxEntry.Folder extends DbxEntry
The subclass ofDbxEntry
used to represent folder metadata. Folders actually only have the same set of fields asDbxEntry
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.dropbox.core.v1.DbxEntry
DbxEntry.File, DbxEntry.Folder, DbxEntry.WithChildren, DbxEntry.WithChildrenC<C>
-
-
Field Summary
Fields Modifier and Type Field Description static JsonReader<DbxEntry.Folder>
Reader
static long
serialVersionUID
-
Fields inherited from class com.dropbox.core.v1.DbxEntry
iconName, mightHaveThumbnail, name, path, ReaderMaybeDeleted
-
-
Constructor Summary
Constructors Constructor Description Folder(java.lang.String path, java.lang.String iconName, boolean mightHaveThumbnail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbxEntry.File
asFile()
If this metadata entry is a file, return it as aDbxEntry.File
instance.DbxEntry.Folder
asFolder()
If this metadata entry is a folder, return it as aDbxEntry.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 typeDbxEntry.File
.boolean
isFolder()
Whether this metadata is for a folder, which can be cast to typeDbxEntry.Folder
.-
Methods inherited from class com.dropbox.core.v1.DbxEntry
dumpFields, partialEquals, partialHashCode, read, readMaybeDeleted
-
Methods inherited from class com.dropbox.core.util.Dumpable
toString, toString, toStringMultiline, toStringMultiline
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
Reader
public static final JsonReader<DbxEntry.Folder> Reader
-
-
Constructor Detail
-
Folder
public Folder(java.lang.String path, java.lang.String iconName, boolean mightHaveThumbnail)
- Parameters:
path
-DbxEntry.path
iconName
-DbxEntry.iconName
mightHaveThumbnail
-DbxEntry.mightHaveThumbnail
-
-
Method Detail
-
getTypeName
protected java.lang.String getTypeName()
- Overrides:
getTypeName
in classDumpable
-
isFolder
public boolean isFolder()
Description copied from class:DbxEntry
Whether this metadata is for a folder, which can be cast to typeDbxEntry.Folder
. (Every metadata object is either for a file or a folder.)
-
isFile
public boolean isFile()
Description copied from class:DbxEntry
Whether this metadata is for a file, which can be cast to typeDbxEntry.File
. (Every metadata object is either for a file or a folder.)
-
asFolder
public DbxEntry.Folder asFolder()
Description copied from class:DbxEntry
If this metadata entry is a folder, return it as aDbxEntry.Folder
instance. If it's not a folder, returnnull
.
-
asFile
public DbxEntry.File asFile()
Description copied from class:DbxEntry
If this metadata entry is a file, return it as aDbxEntry.File
instance. If it's not a file, returnnull
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(DbxEntry.Folder o)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-