Record Class TupleRecorder<Tuple_ extends Tuple>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.bavet.common.TupleRecorder<Tuple_>
-
Constructor Summary
ConstructorsConstructorDescriptionTupleRecorder(List<Tuple_> recordedTupleList, UnaryOperator<Tuple_> mapper, IdentityHashMap<Tuple_, Tuple_> inputTupleToOutputTuple) Creates an instance of aTupleRecorderrecord 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.Returns the value of theinputTupleToOutputTuplerecord component.mapper()Returns the value of themapperrecord component.Returns the value of therecordedTupleListrecord component.voidrecordTuple(Tuple_ tuple) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TupleRecorder
public TupleRecorder(List<Tuple_> recordedTupleList, UnaryOperator<Tuple_> mapper, IdentityHashMap<Tuple_, Tuple_> inputTupleToOutputTuple) Creates an instance of aTupleRecorderrecord class.- Parameters:
recordedTupleList- the value for therecordedTupleListrecord componentmapper- the value for themapperrecord componentinputTupleToOutputTuple- the value for theinputTupleToOutputTuplerecord component
-
-
Method Details
-
recordTuple
-
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). -
recordedTupleList
Returns the value of therecordedTupleListrecord component.- Returns:
- the value of the
recordedTupleListrecord component
-
mapper
Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-
inputTupleToOutputTuple
Returns the value of theinputTupleToOutputTuplerecord component.- Returns:
- the value of the
inputTupleToOutputTuplerecord component
-