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 aPmdJsonSummary
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegeneratedAt
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalViolations
record component.
-
Constructor Details
-
PmdJsonSummary
Creates an instance of aPmdJsonSummary
record class.- Parameters:
totalViolations
- the value for thetotalViolations
record componentgeneratedAt
- the value for thegeneratedAt
record 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 thetotalViolations
record component.- Returns:
- the value of the
totalViolations
record component
-
generatedAt
Returns the value of thegeneratedAt
record component.- Returns:
- the value of the
generatedAt
record component
-