Record Class Solution.Trace
java.lang.Object
java.lang.Record
org.clafer.ig.Solution.Trace
- All Implemented Interfaces:
Solution
- Enclosing interface:
Solution
public static record Solution.Trace(List<ClaferModel> states, int loopState)
extends Record
implements Solution
-
Nested Class Summary
Nested classes/interfaces inherited from interface Solution
Solution.Instance, Solution.Trace -
Constructor Summary
ConstructorsConstructorDescriptionTrace(List<ClaferModel> states, int loopState) Creates an instance of aTracerecord 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.intReturns the value of theloopStaterecord component.models()states()Returns the value of thestatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Trace
Creates an instance of aTracerecord class.- Parameters:
states- the value for thestatesrecord componentloopState- the value for theloopStaterecord component
-
-
Method Details
-
models
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
states
Returns the value of thestatesrecord component.- Returns:
- the value of the
statesrecord component
-
loopState
Returns the value of theloopStaterecord component.- Returns:
- the value of the
loopStaterecord component
-