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 ofDbxEntryused 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>Readerstatic longserialVersionUID-
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.FileasFile()If this metadata entry is a file, return it as aDbxEntry.Fileinstance.DbxEntry.FolderasFolder()If this metadata entry is a folder, return it as aDbxEntry.Folderinstance.booleanequals(DbxEntry.Folder o)booleanequals(java.lang.Object o)protected java.lang.StringgetTypeName()inthashCode()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, 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.pathiconName-DbxEntry.iconNamemightHaveThumbnail-DbxEntry.mightHaveThumbnail
-
-
Method Detail
-
getTypeName
protected java.lang.String 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
public DbxEntry.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
public DbxEntry.File 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
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
equals
public boolean equals(DbxEntry.Folder o)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-