Package name.jurgenei.gradle.antlr
Record Class DynamicAntlrXmlAstConverter.ConversionStats
java.lang.Object
java.lang.Record
name.jurgenei.gradle.antlr.DynamicAntlrXmlAstConverter.ConversionStats
- Enclosing class:
DynamicAntlrXmlAstConverter
public static record DynamicAntlrXmlAstConverter.ConversionStats(int processedFiles, int filesWithErrors, long totalDurationNanos, long cumulativeFileProcessingNanos)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConversionStats(int processedFiles, int filesWithErrors, long totalDurationNanos, long cumulativeFileProcessingNanos) Creates an instance of aConversionStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecumulativeFileProcessingNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefilesWithErrorsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theprocessedFilesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalDurationNanosrecord component.
-
Constructor Details
-
ConversionStats
public ConversionStats(int processedFiles, int filesWithErrors, long totalDurationNanos, long cumulativeFileProcessingNanos) Creates an instance of aConversionStatsrecord class.- Parameters:
processedFiles- the value for theprocessedFilesrecord componentfilesWithErrors- the value for thefilesWithErrorsrecord componenttotalDurationNanos- the value for thetotalDurationNanosrecord componentcumulativeFileProcessingNanos- the value for thecumulativeFileProcessingNanosrecord component
-
-
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 '=='. -
processedFiles
public int processedFiles()Returns the value of theprocessedFilesrecord component.- Returns:
- the value of the
processedFilesrecord component
-
filesWithErrors
public int filesWithErrors()Returns the value of thefilesWithErrorsrecord component.- Returns:
- the value of the
filesWithErrorsrecord component
-
totalDurationNanos
public long totalDurationNanos()Returns the value of thetotalDurationNanosrecord component.- Returns:
- the value of the
totalDurationNanosrecord component
-
cumulativeFileProcessingNanos
public long cumulativeFileProcessingNanos()Returns the value of thecumulativeFileProcessingNanosrecord component.- Returns:
- the value of the
cumulativeFileProcessingNanosrecord component
-