Record Class ProfilingTupleLifecycle<Tuple_ extends Tuple>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.bavet.common.tuple.ProfilingTupleLifecycle<Tuple_>
- All Implemented Interfaces:
TupleLifecycle<Tuple_>
public record ProfilingTupleLifecycle<Tuple_ extends Tuple>(InnerConstraintProfiler constraintProfiler, ConstraintNodeProfileId profileId, TupleLifecycle<Tuple_ extends Tuple> delegate)
extends Record
implements TupleLifecycle<Tuple_>
-
Constructor Summary
ConstructorsConstructorDescriptionProfilingTupleLifecycle(InnerConstraintProfiler constraintProfiler, ConstraintNodeProfileId profileId, TupleLifecycle<Tuple_> delegate) Creates an instance of aProfilingTupleLifecyclerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintProfilerrecord component.delegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidReturns the value of theprofileIdrecord component.voidfinal StringtoString()Returns a string representation of this record class.void
-
Constructor Details
-
ProfilingTupleLifecycle
public ProfilingTupleLifecycle(InnerConstraintProfiler constraintProfiler, ConstraintNodeProfileId profileId, TupleLifecycle<Tuple_> delegate) Creates an instance of aProfilingTupleLifecyclerecord class.- Parameters:
constraintProfiler- the value for theconstraintProfilerrecord componentprofileId- the value for theprofileIdrecord componentdelegate- the value for thedelegaterecord component
-
-
Method Details
-
insert
- Specified by:
insertin interfaceTupleLifecycle<Tuple_ extends Tuple>
-
update
- Specified by:
updatein interfaceTupleLifecycle<Tuple_ extends Tuple>
-
retract
- Specified by:
retractin interfaceTupleLifecycle<Tuple_ extends Tuple>
-
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). -
constraintProfiler
Returns the value of theconstraintProfilerrecord component.- Returns:
- the value of the
constraintProfilerrecord component
-
profileId
Returns the value of theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
delegate
Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-