Package tv.hd3g.jobkit.watchfolder
Record Class WatchedFiles
java.lang.Object
java.lang.Record
tv.hd3g.jobkit.watchfolder.WatchedFiles
- Record Components:
founded- file/dir added on scanned folderlosted- file/dir removed before validation on scanned folderupdated- file/dir updated (date/size change) after be foundedtotalFiles- total file/dir count on scanned folder (valided)
public record WatchedFiles(Set<CachedFileAttributes> founded, Set<? extends FileAttributesReference> losted, Set<CachedFileAttributes> updated, int totalFiles)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWatchedFiles(Set<CachedFileAttributes> founded, Set<? extends FileAttributesReference> losted, Set<CachedFileAttributes> updated, int totalFiles) Creates an instance of aWatchedFilesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.founded()Returns the value of thefoundedrecord component.final inthashCode()Returns a hash code value for this object.Set<? extends FileAttributesReference> losted()Returns the value of thelostedrecord component.toString()Returns a string representation of this record class.intReturns the value of thetotalFilesrecord component.updated()Returns the value of theupdatedrecord component.
-
Constructor Details
-
WatchedFiles
public WatchedFiles(Set<CachedFileAttributes> founded, Set<? extends FileAttributesReference> losted, Set<CachedFileAttributes> updated, int totalFiles) Creates an instance of aWatchedFilesrecord class.- Parameters:
founded- the value for thefoundedrecord componentlosted- the value for thelostedrecord componentupdated- the value for theupdatedrecord componenttotalFiles- the value for thetotalFilesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
foundedAndUpdated
-
getFoundedAndUpdatedFS
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
founded
Returns the value of thefoundedrecord component.- Returns:
- the value of the
foundedrecord component
-
losted
Returns the value of thelostedrecord component.- Returns:
- the value of the
lostedrecord component
-
updated
Returns the value of theupdatedrecord component.- Returns:
- the value of the
updatedrecord component
-
totalFiles
public int totalFiles()Returns the value of thetotalFilesrecord component.- Returns:
- the value of the
totalFilesrecord component
-