Package dev.dokimos.core.gate
Record Class BaselineFile.Provenance
java.lang.Object
java.lang.Record
dev.dokimos.core.gate.BaselineFile.Provenance
- Record Components:
dokimosVersion- the Dokimos version that wrote the file, or null in dev buildsjudge- the judge provenance, or null
- Enclosing class:
BaselineFile
public static record BaselineFile.Provenance(String dokimosVersion, BaselineFile.JudgeInfo judge)
extends Record
Build/judge context, kept separate from the measured signal and excluded from the byte-stability
guarantee. It carries no
createdAt; git already records when the file changed.-
Constructor Summary
ConstructorsConstructorDescriptionProvenance(String dokimosVersion, BaselineFile.JudgeInfo judge) Creates an instance of aProvenancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedokimosVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.judge()Returns the value of thejudgerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Provenance
Creates an instance of aProvenancerecord class.- Parameters:
dokimosVersion- the value for thedokimosVersionrecord componentjudge- the value for thejudgerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
dokimosVersion
Returns the value of thedokimosVersionrecord component.- Returns:
- the value of the
dokimosVersionrecord component
-
judge
Returns the value of thejudgerecord component.- Returns:
- the value of the
judgerecord component
-