Record Class LocalStagingCleanupTask.CleanupResult
java.lang.Object
java.lang.Record
io.leandev.appfuse.file.local.LocalStagingCleanupTask.CleanupResult
- Record Components:
deletedFiles- 已刪除檔案數deletedDirectories- 已刪除空目錄數errors- 失敗項目數
- Enclosing class:
LocalStagingCleanupTask
public static record LocalStagingCleanupTask.CleanupResult(int deletedFiles, int deletedDirectories, int errors)
extends Record
清理結果。
-
Constructor Summary
ConstructorsConstructorDescriptionCleanupResult(int deletedFiles, int deletedDirectories, int errors) Creates an instance of aCleanupResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedeletedDirectoriesrecord component.intReturns the value of thedeletedFilesrecord component.final booleanIndicates whether some other object is "equal to" this one.interrors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CleanupResult
public CleanupResult(int deletedFiles, int deletedDirectories, int errors) Creates an instance of aCleanupResultrecord class.- Parameters:
deletedFiles- the value for thedeletedFilesrecord componentdeletedDirectories- the value for thedeletedDirectoriesrecord componenterrors- the value for theerrorsrecord component
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
deletedFiles
public int deletedFiles()Returns the value of thedeletedFilesrecord component.- Returns:
- the value of the
deletedFilesrecord component
-
deletedDirectories
public int deletedDirectories()Returns the value of thedeletedDirectoriesrecord component.- Returns:
- the value of the
deletedDirectoriesrecord component
-
errors
-