Class ListRevisionsResult

java.lang.Object
com.dropbox.core.v2.files.ListRevisionsResult

public class ListRevisionsResult extends Object
  • Field Details

    • isDeleted

      protected final boolean isDeleted
    • serverDeleted

      @Nullable protected final Date serverDeleted
    • entries

      @Nonnull protected final List<FileMetadata> entries
    • hasMore

      protected final boolean hasMore
  • Constructor Details

    • ListRevisionsResult

      public ListRevisionsResult(boolean isDeleted, @Nonnull List<FileMetadata> entries, boolean hasMore, @Nullable Date serverDeleted)
      Parameters:
      isDeleted - If the file identified by the latest revision in the response is either deleted or moved. If before_rev is set, this refers to the latest revision of the file older than before_rev.
      entries - The revisions for the file. Only revisions that are not deleted will show up here. Must not contain a null item and not be null.
      hasMore - If true, then there are more entries available. Call list_revisions again with before_rev equal to the revision of the last returned entry to retrieve the rest.
      serverDeleted - The time of deletion if the file was deleted.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • ListRevisionsResult

      public ListRevisionsResult(boolean isDeleted, @Nonnull List<FileMetadata> entries, boolean hasMore)
      None

      The default values for unset fields will be used.

      Parameters:
      isDeleted - If the file identified by the latest revision in the response is either deleted or moved. If before_rev is set, this refers to the latest revision of the file older than before_rev.
      entries - The revisions for the file. Only revisions that are not deleted will show up here. Must not contain a null item and not be null.
      hasMore - If true, then there are more entries available. Call list_revisions again with before_rev equal to the revision of the last returned entry to retrieve the rest.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getIsDeleted

      public boolean getIsDeleted()
      If the file identified by the latest revision in the response is either deleted or moved. If before_rev is set, this refers to the latest revision of the file older than before_rev.
      Returns:
      value for this field.
    • getEntries

      @Nonnull public List<FileMetadata> getEntries()
      The revisions for the file. Only revisions that are not deleted will show up here.
      Returns:
      value for this field, never null.
    • getHasMore

      public boolean getHasMore()
      If true, then there are more entries available. Call list_revisions again with before_rev equal to the revision of the last returned entry to retrieve the rest.
      Returns:
      value for this field.
    • getServerDeleted

      @Nullable public Date getServerDeleted()
      The time of deletion if the file was deleted.
      Returns:
      value for this field, or null if not present.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object