Package com.dropbox.core.v2.teamlog
Class FileOrFolderLogInfo
java.lang.Object
com.dropbox.core.v2.teamlog.FileOrFolderLogInfo
- Direct Known Subclasses:
FileLogInfo,FolderLogInfo
Generic information relevant both for files and folders
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final Longprotected final PathLogInfo -
Constructor Summary
ConstructorsConstructorDescriptionGeneric information relevant both for files and foldersFileOrFolderLogInfo(PathLogInfo path, String displayName, String fileId, Long fileSize) Generic information relevant both for files and folders -
Method Summary
Modifier and TypeMethodDescriptionbooleanDisplay name.Unique ID.File or folder size in bytes.getPath()Path relative to event context.inthashCode()static FileOrFolderLogInfo.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
-
path
-
displayName
-
fileId
-
fileSize
-
-
Constructor Details
-
FileOrFolderLogInfo
public FileOrFolderLogInfo(@Nonnull PathLogInfo path, @Nullable String displayName, @Nullable String fileId, @Nullable Long fileSize) Generic information relevant both for files and foldersUse
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.
-
FileOrFolderLogInfo
Generic information relevant both for files and foldersThe 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.- Returns:
- value for this field, never
null.
-
getDisplayName
Display name.- Returns:
- value for this field, or
nullif not present.
-
getFileId
Unique ID.- Returns:
- value for this field, or
nullif not present.
-
getFileSize
File or folder size in bytes.- 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() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-