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>
entries
protected boolean
isDeleted
protected java.util.Date
serverDeleted
-
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 boolean
equals(java.lang.Object obj)
java.util.List<FileMetadata>
getEntries()
The revisions for the file.boolean
getIsDeleted()
If the file identified by the latest revision in the response is either deleted or moved.java.util.Date
getServerDeleted()
The time of deletion if the file was deleted.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
isDeleted
protected final boolean isDeleted
-
serverDeleted
@Nullable protected final java.util.Date serverDeleted
-
entries
@Nonnull protected final java.util.List<FileMetadata> entries
-
-
Constructor Detail
-
ListRevisionsResult
public ListRevisionsResult(boolean isDeleted, @Nonnull java.util.List<FileMetadata> entries, @Nullable 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 anull
item 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, @Nonnull 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 anull
item 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
@Nonnull 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
@Nullable public java.util.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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-