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

    Constructors
    Constructor
    Description
    GeneratorResult(int createdFiles, int updatedFiles, int errorFiles, int identicalFiles, int deletedFiles, long durationMillis)
    Creates an instance of a GeneratorResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Static method factory for GeneratorResultBuilder
    int
    Returns the value of the createdFiles record component.
    int
    Returns the value of the deletedFiles record component.
    void
    Affichage du résultat de la génération dans la console.
    long
    Returns the value of the durationMillis record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the errorFiles record component.
    Affichage du résultat de la génération dans la console.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the identicalFiles record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the updatedFiles record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GeneratorResult

      public GeneratorResult(int createdFiles, int updatedFiles, int errorFiles, int identicalFiles, int deletedFiles, long durationMillis)
      Creates an instance of a GeneratorResult record class.
      Parameters:
      createdFiles - the value for the createdFiles record component
      updatedFiles - the value for the updatedFiles record component
      errorFiles - the value for the errorFiles record component
      identicalFiles - the value for the identicalFiles record component
      deletedFiles - the value for the deletedFiles record component
      durationMillis - the value for the durationMillis record component
  • Method Details

    • builder

      public static GeneratorResultBuilder builder()
      Static method factory for GeneratorResultBuilder
      Returns:
      GeneratorResultBuilder
    • displayResultMessage

      public void displayResultMessage(PrintStream out)
      Affichage du résultat de la génération dans la console.
    • getResultMessage

      public String getResultMessage()
      Affichage du résultat de la génération dans la console.
    • 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.
    • createdFiles

      public int createdFiles()
      Returns the value of the createdFiles record component.
      Returns:
      the value of the createdFiles record component
    • updatedFiles

      public int updatedFiles()
      Returns the value of the updatedFiles record component.
      Returns:
      the value of the updatedFiles record component
    • errorFiles

      public int errorFiles()
      Returns the value of the errorFiles record component.
      Returns:
      the value of the errorFiles record component
    • identicalFiles

      public int identicalFiles()
      Returns the value of the identicalFiles record component.
      Returns:
      the value of the identicalFiles record component
    • deletedFiles

      public int deletedFiles()
      Returns the value of the deletedFiles record component.
      Returns:
      the value of the deletedFiles record component
    • durationMillis

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