Record Class RenameResult
java.lang.Object
java.lang.Record
de.aikiit.fotorenamer.image.RenameResult
public record RenameResult(int total, int processed, int renamed, int skipped, int failed, boolean cancelled)
extends Record
Immutable batch result (or progress snapshot), without localized UI text.
Total counts detected image candidates; processed is renamed + skipped + failed.
Cancelled batches can have unprocessed candidates. Completed moves are not rolled back.
-
Constructor Summary
ConstructorsConstructorDescriptionRenameResult(int total, int processed, int renamed, int skipped, int failed, boolean cancelled) Creates an instance of aRenameResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelledrecord component.final booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theprocessedrecord component.intrenamed()Returns the value of therenamedrecord component.intskipped()Returns the value of theskippedrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
RenameResult
public RenameResult(int total, int processed, int renamed, int skipped, int failed, boolean cancelled) Creates an instance of aRenameResultrecord class.- Parameters:
total- the value for thetotalrecord componentprocessed- the value for theprocessedrecord componentrenamed- the value for therenamedrecord componentskipped- the value for theskippedrecord componentfailed- the value for thefailedrecord componentcancelled- the value for thecancelledrecord component
-
-
Method Details
-
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. -
total
public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
processed
public int processed()Returns the value of theprocessedrecord component.- Returns:
- the value of the
processedrecord component
-
renamed
public int renamed()Returns the value of therenamedrecord component.- Returns:
- the value of the
renamedrecord component
-
skipped
public int skipped()Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
cancelled
public boolean cancelled()Returns the value of thecancelledrecord component.- Returns:
- the value of the
cancelledrecord component
-