Record Class DeleteStats

java.lang.Object
java.lang.Record
io.smallrye.common.io.DeleteStats
Record Components:
directoriesFound - the number of directories found (must be greater than zero)
directoriesRemoved - the number of directories removed (must be greater than zero and less than or equal to directoriesFound)
filesFound - the number of files found (must be greater than zero)
filesRemoved - the number of files removed (must be greater than zero and less than or equal to filesFound)

public record DeleteStats(long directoriesFound, long directoriesRemoved, long filesFound, long filesRemoved) extends Record
Statistics for a quiet file deletion operation.
  • Constructor Details

    • DeleteStats

      public DeleteStats(long directoriesFound, long directoriesRemoved, long filesFound, long filesRemoved)
      Construct a new instance.
      Parameters:
      directoriesFound - the number of directories found (must be greater than zero)
      directoriesRemoved - the number of directories removed (must be greater than zero and less than or equal to directoriesFound)
      filesFound - the number of files found (must be greater than zero)
      filesRemoved - the number of files removed (must be greater than zero and less than or equal to filesFound)
  • Method Details

    • toString

      public final 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
    • 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. All components in this record class 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.
    • directoriesFound

      public long directoriesFound()
      Returns the value of the directoriesFound record component.
      Returns:
      the value of the directoriesFound record component
    • directoriesRemoved

      public long directoriesRemoved()
      Returns the value of the directoriesRemoved record component.
      Returns:
      the value of the directoriesRemoved record component
    • filesFound

      public long filesFound()
      Returns the value of the filesFound record component.
      Returns:
      the value of the filesFound record component
    • filesRemoved

      public long filesRemoved()
      Returns the value of the filesRemoved record component.
      Returns:
      the value of the filesRemoved record component