public class FileLogInfo extends FileOrFolderLogInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
FileLogInfo.Builder
Builder for
FileLogInfo. |
displayName, fileId, fileSize, path| Constructor and Description |
|---|
FileLogInfo(PathLogInfo path)
File's logged information.
|
FileLogInfo(PathLogInfo path,
java.lang.String displayName,
java.lang.String fileId,
java.lang.Long fileSize)
File's logged information.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDisplayName()
Display name.
|
java.lang.String |
getFileId()
Unique ID.
|
java.lang.Long |
getFileSize()
File or folder size in bytes.
|
PathLogInfo |
getPath()
Path relative to event context.
|
int |
hashCode() |
static FileLogInfo.Builder |
newBuilder(PathLogInfo path)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public FileLogInfo(PathLogInfo path, java.lang.String displayName, java.lang.String fileId, java.lang.Long fileSize)
Use newBuilder to create instances of this class without
specifying values for all optional fields.
path - Path relative to event context. Must not be null.displayName - Display name. Might be missing due to historical data
gap.fileId - Unique ID. Might be missing due to historical data gap.fileSize - File or folder size in bytes.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public FileLogInfo(PathLogInfo path)
The default values for unset fields will be used.
path - Path relative to event context. Must not be null.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public PathLogInfo getPath()
getPath in class FileOrFolderLogInfonull.public java.lang.String getDisplayName()
getDisplayName in class FileOrFolderLogInfonull if not present.public java.lang.String getFileId()
getFileId in class FileOrFolderLogInfonull if not present.public java.lang.Long getFileSize()
getFileSize in class FileOrFolderLogInfonull if not present.public static FileLogInfo.Builder newBuilder(PathLogInfo path)
path - Path relative to event context. Must not be null.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public int hashCode()
hashCode in class FileOrFolderLogInfopublic boolean equals(java.lang.Object obj)
equals in class FileOrFolderLogInfopublic java.lang.String toString()
toString in class FileOrFolderLogInfopublic java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline in class FileOrFolderLogInfo