Package com.dropbox.core.v2.files
Class ListRevisionsResult
java.lang.Object
com.dropbox.core.v2.files.ListRevisionsResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<FileMetadata> protected final booleanprotected final booleanprotected final Date -
Constructor Summary
ConstructorsConstructorDescriptionListRevisionsResult(boolean isDeleted, List<FileMetadata> entries, boolean hasMore) NoneListRevisionsResult(boolean isDeleted, List<FileMetadata> entries, boolean hasMore, Date serverDeleted) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe revisions for the file.booleanIf true, then there are more entries available.booleanIf the file identified by the latest revision in the response is either deleted or moved.The time of deletion if the file was deleted.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
isDeleted
protected final boolean isDeleted -
serverDeleted
-
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 anullitem and not benull.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
NoneThe 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 anullitem and not benull.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
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
The time of deletion if the file was deleted.- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-