Package com.dropbox.core.v2.teamlog
Class FolderLogInfo
java.lang.Object
com.dropbox.core.v2.teamlog.FileOrFolderLogInfo
com.dropbox.core.v2.teamlog.FolderLogInfo
Folder's logged information.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.teamlog.FileOrFolderLogInfo
displayName, fileId, fileSize, path -
Constructor Summary
ConstructorsConstructorDescriptionFolderLogInfo(PathLogInfo path) Folder's logged information.FolderLogInfo(PathLogInfo path, String displayName, String fileId, Long fileSize, Long fileCount) Folder's logged information. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDisplay name.Number of files within the folder.Unique ID.File or folder size in bytes.getPath()Path relative to event context.inthashCode()static FolderLogInfo.BuildernewBuilder(PathLogInfo path) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
fileCount
-
-
Constructor Details
-
FolderLogInfo
public FolderLogInfo(@Nonnull PathLogInfo path, @Nullable String displayName, @Nullable String fileId, @Nullable Long fileSize, @Nullable 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.fileId- Unique ID.fileSize- File or folder size in bytes.fileCount- Number of files within the folder.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
FolderLogInfo
Folder's logged information.The default values for unset fields will be used.
- Parameters:
path- Path relative to event context. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getPath
Path relative to event context.- Overrides:
getPathin classFileOrFolderLogInfo- Returns:
- value for this field, never
null.
-
getDisplayName
Display name.- Overrides:
getDisplayNamein classFileOrFolderLogInfo- Returns:
- value for this field, or
nullif not present.
-
getFileId
Unique ID.- Overrides:
getFileIdin classFileOrFolderLogInfo- Returns:
- value for this field, or
nullif not present.
-
getFileSize
File or folder size in bytes.- Overrides:
getFileSizein classFileOrFolderLogInfo- Returns:
- value for this field, or
nullif not present.
-
getFileCount
Number of files within the folder.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classFileOrFolderLogInfo
-
equals
- Overrides:
equalsin classFileOrFolderLogInfo
-
toString
- Overrides:
toStringin classFileOrFolderLogInfo
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classFileOrFolderLogInfo- Returns:
- Formatted, multiline String representation of this object
-