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 todirectoriesFound)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 tofilesFound)
public record DeleteStats(long directoriesFound, long directoriesRemoved, long filesFound, long filesRemoved)
extends Record
Statistics for a quiet file deletion operation.
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteStats(long directoriesFound, long directoriesRemoved, long filesFound, long filesRemoved) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedirectoriesFoundrecord component.longReturns the value of thedirectoriesRemovedrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefilesFoundrecord component.longReturns the value of thefilesRemovedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
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 todirectoriesFound)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 tofilesFound)
-
-
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. -
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. All components in this record class are compared with '=='. -
directoriesFound
public long directoriesFound()Returns the value of thedirectoriesFoundrecord component.- Returns:
- the value of the
directoriesFoundrecord component
-
directoriesRemoved
public long directoriesRemoved()Returns the value of thedirectoriesRemovedrecord component.- Returns:
- the value of the
directoriesRemovedrecord component
-
filesFound
public long filesFound()Returns the value of thefilesFoundrecord component.- Returns:
- the value of the
filesFoundrecord component
-
filesRemoved
public long filesRemoved()Returns the value of thefilesRemovedrecord component.- Returns:
- the value of the
filesRemovedrecord component
-