Package se.diabol.jenkins.pipeline.model
Record Class AnalysisSummary
java.lang.Object
java.lang.Record
se.diabol.jenkins.pipeline.model.AnalysisSummary
@ExportedBean(defaultVisibility=100)
public record AnalysisSummary(String name, String url, int high, int normal, int low)
extends Record
Static analysis warning counts of a build, by priority.
-
Constructor Summary
ConstructorsConstructorDescriptionAnalysisSummary(String name, String url, int high, int normal, int low) Creates an instance of aAnalysisSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inthigh()Returns the value of thehighrecord component.intlow()Returns the value of thelowrecord component.name()Returns the value of thenamerecord component.intnormal()Returns the value of thenormalrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
AnalysisSummary
Creates an instance of aAnalysisSummaryrecord class.- Parameters:
name- the value for thenamerecord componenturl- the value for theurlrecord componenthigh- the value for thehighrecord componentnormal- the value for thenormalrecord componentlow- the value for thelowrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
high
@Exported public int high()Returns the value of thehighrecord component.- Returns:
- the value of the
highrecord component
-
normal
@Exported public int normal()Returns the value of thenormalrecord component.- Returns:
- the value of the
normalrecord component
-
low
@Exported public int low()Returns the value of thelowrecord component.- Returns:
- the value of the
lowrecord component
-