Record Class CheckResult
java.lang.Object
java.lang.Record
frc.spectrumLib.checks.CheckResult
- Record Components:
status- the verdictreason- one line: what was found, with the numbers
One check's verdict and the reason for it, in words a drive team can act on.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCheckResult(CheckResult.Status status, String reason) Creates an instance of aCheckResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static CheckResultfinal inthashCode()Returns a hash code value for this object.booleanisFail()booleanisWarn()static CheckResultreason()Returns the value of thereasonrecord component.static CheckResultstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.static CheckResult
-
Constructor Details
-
Method Details
-
skip
-
pass
-
warn
-
fail
-
isFail
public boolean isFail() -
isWarn
public boolean isWarn() -
toString
-
hashCode
-
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). -
status
-
reason
-