Package net.javasauce.ss.util
Record Class CommittedTestCasePair
java.lang.Object
java.lang.Record
net.javasauce.ss.util.CommittedTestCasePair
public record CommittedTestCasePair(String id, @Nullable CommittedTestCaseDef before, CommittedTestCaseDef now)
extends Record
Created by covers1624 on 8/22/25.
-
Constructor Summary
ConstructorsConstructorDescriptionCommittedTestCasePair(String id, @Nullable CommittedTestCaseDef before, CommittedTestCaseDef now) Creates an instance of aCommittedTestCasePairrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable CommittedTestCaseDefbefore()Returns the value of thebeforerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.now()Returns the value of thenowrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommittedTestCasePair
public CommittedTestCasePair(String id, @Nullable @Nullable CommittedTestCaseDef before, CommittedTestCaseDef now) Creates an instance of aCommittedTestCasePairrecord class.- Parameters:
id- the value for theidrecord componentbefore- the value for thebeforerecord componentnow- the value for thenowrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
before
Returns the value of thebeforerecord component.- Returns:
- the value of the
beforerecord component
-
now
Returns the value of thenowrecord component.- Returns:
- the value of the
nowrecord component
-