Record Class Solution.Instance
java.lang.Object
java.lang.Record
org.clafer.ig.Solution.Instance
- All Implemented Interfaces:
Solution
- Enclosing interface:
Solution
public static record Solution.Instance(ClaferModel model, String text)
extends Record
implements Solution
An instance, with its text as its backend prints it, if the backend
prints it otherwise than claferIG (
null for claferIG's text).-
Nested Class Summary
Nested classes/interfaces inherited from interface Solution
Solution.Instance, Solution.Trace -
Constructor Summary
ConstructorsConstructorDescriptionInstance(ClaferModel model) Instance(ClaferModel model, String text) Creates an instance of aInstancerecord 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.model()Returns the value of themodelrecord component.models()text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Instance
-
Instance
Creates an instance of aInstancerecord class.- Parameters:
model- the value for themodelrecord componenttext- the value for thetextrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
text
-