Class DbxEntry.Folder

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    DbxEntry

    public static final class DbxEntry.Folder
    extends DbxEntry
    The subclass of DbxEntry used to represent folder metadata. Folders actually only have the same set of fields as DbxEntry.
    See Also:
    Serialized Form
    • Method Detail

      • getTypeName

        protected java.lang.String getTypeName()
        Overrides:
        getTypeName in class Dumpable
      • isFolder

        public boolean isFolder()
        Description copied from class: DbxEntry
        Whether this metadata is for a folder, which can be cast to type DbxEntry.Folder. (Every metadata object is either for a file or a folder.)
        Specified by:
        isFolder in class DbxEntry
      • isFile

        public boolean isFile()
        Description copied from class: DbxEntry
        Whether this metadata is for a file, which can be cast to type DbxEntry.File. (Every metadata object is either for a file or a folder.)
        Specified by:
        isFile in class DbxEntry
      • asFolder

        public DbxEntry.Folder asFolder()
        Description copied from class: DbxEntry
        If this metadata entry is a folder, return it as a DbxEntry.Folder instance. If it's not a folder, return null.
        Specified by:
        asFolder in class DbxEntry
      • asFile

        public DbxEntry.File asFile()
        Description copied from class: DbxEntry
        If this metadata entry is a file, return it as a DbxEntry.File instance. If it's not a file, return null.
        Specified by:
        asFile in class DbxEntry
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object