public class ListRevisionsResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<FileMetadata> |
entries |
protected boolean |
isDeleted |
protected java.util.Date |
serverDeleted |
Constructor and Description |
---|
ListRevisionsResult(boolean isDeleted,
java.util.List<FileMetadata> entries)
None
|
ListRevisionsResult(boolean isDeleted,
java.util.List<FileMetadata> entries,
java.util.Date serverDeleted) |
Modifier and Type | Method and 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.
|
protected final boolean isDeleted
protected final java.util.Date serverDeleted
protected final java.util.List<FileMetadata> entries
public ListRevisionsResult(boolean isDeleted, java.util.List<FileMetadata> entries, java.util.Date serverDeleted)
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 a null
item and
not be null
.serverDeleted
- The time of deletion if the file was deleted.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public ListRevisionsResult(boolean isDeleted, java.util.List<FileMetadata> entries)
The default values for unset fields will be used.
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 a null
item and
not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public boolean getIsDeleted()
public java.util.List<FileMetadata> getEntries()
null
.public java.util.Date getServerDeleted()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.