Record Class WatchedFiles

java.lang.Object
java.lang.Record
tv.hd3g.jobkit.watchfolder.WatchedFiles
Record Components:
founded - file/dir added on scanned folder
losted - file/dir removed before validation on scanned folder
updated - file/dir updated (date/size change) after be founded
totalFiles - 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 Details

  • Method Details

    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • foundedAndUpdated

      public Set<CachedFileAttributes> foundedAndUpdated()
    • getFoundedAndUpdatedFS

      public Set<AbstractFileSystem<?>> 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • founded

      public Set<CachedFileAttributes> founded()
      Returns the value of the founded record component.
      Returns:
      the value of the founded record component
    • losted

      public Set<? extends FileAttributesReference> losted()
      Returns the value of the losted record component.
      Returns:
      the value of the losted record component
    • updated

      public Set<CachedFileAttributes> updated()
      Returns the value of the updated record component.
      Returns:
      the value of the updated record component
    • totalFiles

      public int totalFiles()
      Returns the value of the totalFiles record component.
      Returns:
      the value of the totalFiles record component