public class FolderLogInfo extends FileOrFolderLogInfo
Modifier and Type | Class and Description |
---|---|
static class |
FolderLogInfo.Builder
Builder for
FolderLogInfo . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long |
fileCount |
displayName, fileId, fileSize, path
Constructor and Description |
---|
FolderLogInfo(PathLogInfo path)
Folder's logged information.
|
FolderLogInfo(PathLogInfo path,
java.lang.String displayName,
java.lang.String fileId,
java.lang.Long fileSize,
java.lang.Long fileCount)
Folder's logged information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDisplayName()
Display name.
|
java.lang.Long |
getFileCount()
Number of files within the folder.
|
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 FolderLogInfo.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 FolderLogInfo(PathLogInfo path, java.lang.String displayName, java.lang.String fileId, java.lang.Long fileSize, java.lang.Long fileCount)
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.fileCount
- Number of files within the folder.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderLogInfo(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 FileOrFolderLogInfo
null
.public java.lang.String getDisplayName()
getDisplayName
in class FileOrFolderLogInfo
null
if not present.public java.lang.String getFileId()
getFileId
in class FileOrFolderLogInfo
null
if not present.public java.lang.Long getFileSize()
getFileSize
in class FileOrFolderLogInfo
null
if not present.public java.lang.Long getFileCount()
null
if not present.public static FolderLogInfo.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 FileOrFolderLogInfo
public boolean equals(java.lang.Object obj)
equals
in class FileOrFolderLogInfo
public java.lang.String toString()
toString
in class FileOrFolderLogInfo
public java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class FileOrFolderLogInfo