Package com.dropbox.core.v2.teamlog
Class FolderLogInfo
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.FileOrFolderLogInfo
-
- com.dropbox.core.v2.teamlog.FolderLogInfo
-
public class FolderLogInfo extends FileOrFolderLogInfo
Folder's logged information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FolderLogInfo.Builder
Builder forFolderLogInfo
.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Long
fileCount
-
Fields inherited from class com.dropbox.core.v2.teamlog.FileOrFolderLogInfo
displayName, fileId, fileSize, path
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
FolderLogInfo
public FolderLogInfo(PathLogInfo path, java.lang.String displayName, java.lang.String fileId, java.lang.Long fileSize, java.lang.Long fileCount)
Folder's logged information.Use
newBuilder(com.dropbox.core.v2.teamlog.PathLogInfo)
to create instances of this class without specifying values for all optional fields.- Parameters:
path
- Path relative to event context. Must not benull
.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.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
FolderLogInfo
public FolderLogInfo(PathLogInfo path)
Folder's logged information.The default values for unset fields will be used.
- Parameters:
path
- Path relative to event context. Must not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getPath
public PathLogInfo getPath()
Path relative to event context.- Overrides:
getPath
in classFileOrFolderLogInfo
- Returns:
- value for this field, never
null
.
-
getDisplayName
public java.lang.String getDisplayName()
Display name. Might be missing due to historical data gap.- Overrides:
getDisplayName
in classFileOrFolderLogInfo
- Returns:
- value for this field, or
null
if not present.
-
getFileId
public java.lang.String getFileId()
Unique ID. Might be missing due to historical data gap.- Overrides:
getFileId
in classFileOrFolderLogInfo
- Returns:
- value for this field, or
null
if not present.
-
getFileSize
public java.lang.Long getFileSize()
File or folder size in bytes.- Overrides:
getFileSize
in classFileOrFolderLogInfo
- Returns:
- value for this field, or
null
if not present.
-
getFileCount
public java.lang.Long getFileCount()
Number of files within the folder.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static FolderLogInfo.Builder newBuilder(PathLogInfo path)
Returns a new builder for creating an instance of this class.- Parameters:
path
- Path relative to event context. Must not benull
.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFileOrFolderLogInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classFileOrFolderLogInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFileOrFolderLogInfo
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultiline
in classFileOrFolderLogInfo
- Returns:
- Formatted, multiline String representation of this object
-
-