Package com.dropbox.core.v2.teamlog
Class FileLogInfo
java.lang.Object
com.dropbox.core.v2.teamlog.FileOrFolderLogInfo
com.dropbox.core.v2.teamlog.FileLogInfo
File's logged information.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.dropbox.core.v2.teamlog.FileOrFolderLogInfo
displayName, fileId, fileSize, path -
Constructor Summary
ConstructorsConstructorDescriptionFileLogInfo(PathLogInfo path) File's logged information.FileLogInfo(PathLogInfo path, String displayName, String fileId, Long fileSize) File's logged information. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDisplay name.Unique ID.File or folder size in bytes.getPath()Path relative to event context.inthashCode()static FileLogInfo.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.
-
Constructor Details
-
FileLogInfo
public FileLogInfo(@Nonnull PathLogInfo path, @Nullable String displayName, @Nullable String fileId, @Nullable Long fileSize) File'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.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
FileLogInfo
File'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.
-
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
-