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:
Serializable
- Enclosing class:
DbxEntry
The subclass of
DbxEntry used to represent folder metadata. Folders
actually only have the same set of fields as DbxEntry.- See Also:
-
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
FieldsFields inherited from class com.dropbox.core.v1.DbxEntry
iconName, mightHaveThumbnail, name, path, ReaderMaybeDeleted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasFile()If this metadata entry is a file, return it as aDbxEntry.Fileinstance.asFolder()If this metadata entry is a folder, return it as aDbxEntry.Folderinstance.booleanbooleanprotected StringinthashCode()booleanisFile()Whether this metadata is for a file, which can be cast to typeDbxEntry.File.booleanisFolder()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, readMaybeDeletedMethods inherited from class com.dropbox.core.util.Dumpable
toString, toString, toStringMultiline, toStringMultiline
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
Reader
-
-
Constructor Details
-
Folder
- Parameters:
path-DbxEntry.pathiconName-DbxEntry.iconNamemightHaveThumbnail-DbxEntry.mightHaveThumbnail
-
-
Method Details
-
getTypeName
- Overrides:
getTypeNamein classDumpable
-
isFolder
public boolean isFolder()Description copied from class:DbxEntryWhether 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:DbxEntryWhether 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
Description copied from class:DbxEntryIf this metadata entry is a folder, return it as aDbxEntry.Folderinstance. If it's not a folder, returnnull. -
asFile
Description copied from class:DbxEntryIf this metadata entry is a file, return it as aDbxEntry.Fileinstance. If it's not a file, returnnull. -
equals
-
equals
-
hashCode
public int hashCode()
-