Package io.vertigo.studio.generator
Record Class GeneratorResult
java.lang.Object
java.lang.Record
io.vertigo.studio.generator.GeneratorResult
public record GeneratorResult(int createdFiles, int updatedFiles, int errorFiles, int identicalFiles, int deletedFiles, long durationMillis)
extends Record
Résultat de la génération.
- Author:
- pchretien, mlaroche
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratorResult(int createdFiles, int updatedFiles, int errorFiles, int identicalFiles, int deletedFiles, long durationMillis) Creates an instance of aGeneratorResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorResultBuilderbuilder()Static method factory for GeneratorResultBuilderintReturns the value of thecreatedFilesrecord component.intReturns the value of thedeletedFilesrecord component.voidAffichage du résultat de la génération dans la console.longReturns the value of thedurationMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theerrorFilesrecord component.Affichage du résultat de la génération dans la console.final inthashCode()Returns a hash code value for this object.intReturns the value of theidenticalFilesrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theupdatedFilesrecord component.
-
Constructor Details
-
GeneratorResult
public GeneratorResult(int createdFiles, int updatedFiles, int errorFiles, int identicalFiles, int deletedFiles, long durationMillis) Creates an instance of aGeneratorResultrecord class.- Parameters:
createdFiles- the value for thecreatedFilesrecord componentupdatedFiles- the value for theupdatedFilesrecord componenterrorFiles- the value for theerrorFilesrecord componentidenticalFiles- the value for theidenticalFilesrecord componentdeletedFiles- the value for thedeletedFilesrecord componentdurationMillis- the value for thedurationMillisrecord component
-
-
Method Details
-
builder
Static method factory for GeneratorResultBuilder- Returns:
- GeneratorResultBuilder
-
displayResultMessage
Affichage du résultat de la génération dans la console. -
getResultMessage
Affichage du résultat de la génération dans la console. -
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 '=='. -
createdFiles
public int createdFiles()Returns the value of thecreatedFilesrecord component.- Returns:
- the value of the
createdFilesrecord component
-
updatedFiles
public int updatedFiles()Returns the value of theupdatedFilesrecord component.- Returns:
- the value of the
updatedFilesrecord component
-
errorFiles
public int errorFiles()Returns the value of theerrorFilesrecord component.- Returns:
- the value of the
errorFilesrecord component
-
identicalFiles
public int identicalFiles()Returns the value of theidenticalFilesrecord component.- Returns:
- the value of the
identicalFilesrecord component
-
deletedFiles
public int deletedFiles()Returns the value of thedeletedFilesrecord component.- Returns:
- the value of the
deletedFilesrecord component
-
durationMillis
public long durationMillis()Returns the value of thedurationMillisrecord component.- Returns:
- the value of the
durationMillisrecord component
-