Package ch.so.agi.hop.doclint.model
Record Class CheckResult
java.lang.Object
java.lang.Record
ch.so.agi.hop.doclint.model.CheckResult
public record CheckResult(String elementId, String check, CheckStatus status, String detail)
extends Record
Result of a single check.
elementId may be blank for repository-wide findings, for example an unreadable example
pipeline.
-
Constructor Summary
ConstructorsConstructorDescriptionCheckResult(String elementId, String check, CheckStatus status, String detail) Creates an instance of aCheckResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncheck()Returns the value of thecheckrecord component.detail()Returns the value of thedetailrecord component.Returns the value of theelementIdrecord component.final booleanIndicates whether some other object is "equal to" this one.static CheckResultstatic CheckResultfinal inthashCode()Returns a hash code value for this object.booleanisError()booleanstatic CheckResultstatic CheckResultstatic CheckResultstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.static CheckResult
-
Constructor Details
-
CheckResult
Creates an instance of aCheckResultrecord class.- Parameters:
elementId- the value for theelementIdrecord componentcheck- the value for thecheckrecord componentstatus- the value for thestatusrecord componentdetail- the value for thedetailrecord component
-
-
Method Details
-
ok
-
ok
-
fail
-
fail
-
warn
-
skip
-
isError
public boolean isError() -
isWarning
public boolean isWarning() -
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 withObjects::equals(Object,Object). -
elementId
Returns the value of theelementIdrecord component.- Returns:
- the value of the
elementIdrecord component
-
check
Returns the value of thecheckrecord component.- Returns:
- the value of the
checkrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-