Record Class PmdXmlToJsonCommand.PmdJsonSummary
java.lang.Object
java.lang.Record
com.streamconverter.command.impl.analysis.PmdXmlToJsonCommand.PmdJsonSummary
- Record Components:
totalViolations- 総違反数generatedAt- 生成日時
- Enclosing class:
PmdXmlToJsonCommand
public static record PmdXmlToJsonCommand.PmdJsonSummary(int totalViolations, String generatedAt)
extends Record
JSON レポートのサマリー情報
-
Constructor Summary
ConstructorsConstructorDescriptionPmdJsonSummary(int totalViolations, String generatedAt) Creates an instance of aPmdJsonSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratedAtrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalViolationsrecord component.
-
Constructor Details
-
PmdJsonSummary
Creates an instance of aPmdJsonSummaryrecord class.- Parameters:
totalViolations- the value for thetotalViolationsrecord componentgeneratedAt- the value for thegeneratedAtrecord 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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
totalViolations
Returns the value of thetotalViolationsrecord component.- Returns:
- the value of the
totalViolationsrecord component
-
generatedAt
Returns the value of thegeneratedAtrecord component.- Returns:
- the value of the
generatedAtrecord component
-