Package com.dropbox.core.v2.files
Class ListRevisionsResult
- java.lang.Object
-
- com.dropbox.core.v2.files.ListRevisionsResult
-
public class ListRevisionsResult extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<FileMetadata>entriesprotected booleanisDeletedprotected java.util.DateserverDeleted
-
Constructor Summary
Constructors Constructor Description ListRevisionsResult(boolean isDeleted, java.util.List<FileMetadata> entries)NoneListRevisionsResult(boolean isDeleted, java.util.List<FileMetadata> entries, java.util.Date serverDeleted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<FileMetadata>getEntries()The revisions for the file.booleangetIsDeleted()If the file identified by the latest revision in the response is either deleted or moved.java.util.DategetServerDeleted()The time of deletion if the file was deleted.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
isDeleted
protected final boolean isDeleted
-
serverDeleted
protected final java.util.Date serverDeleted
-
entries
protected final java.util.List<FileMetadata> entries
-
-
Constructor Detail
-
ListRevisionsResult
public ListRevisionsResult(boolean isDeleted, java.util.List<FileMetadata> entries, java.util.Date serverDeleted)- Parameters:
isDeleted- If the file identified by the latest revision in the response is either deleted or moved.entries- The revisions for the file. Only revisions that are not deleted will show up here. Must not contain anullitem and not benull.serverDeleted- The time of deletion if the file was deleted.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
ListRevisionsResult
public ListRevisionsResult(boolean isDeleted, java.util.List<FileMetadata> entries)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.entries- The revisions for the file. Only revisions that are not deleted will show up here. Must not contain anullitem and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getIsDeleted
public boolean getIsDeleted()
If the file identified by the latest revision in the response is either deleted or moved.- Returns:
- value for this field.
-
getEntries
public java.util.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.
-
getServerDeleted
public java.util.Date getServerDeleted()
The time of deletion if the file was deleted.- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringMultiline
public java.lang.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
-
-