Record Class ConditionalTupleLifecycle<Tuple_ extends AbstractTuple>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.bavet.common.tuple.ConditionalTupleLifecycle<Tuple_>
- All Implemented Interfaces:
TupleLifecycle<Tuple_>
public record ConditionalTupleLifecycle<Tuple_ extends AbstractTuple>(TupleLifecycle<Tuple_ extends AbstractTuple> downstreamLifecycle, ai.timefold.solver.core.impl.bavet.common.tuple.ConditionalTupleLifecycle.TuplePredicate<Tuple_ extends AbstractTuple> predicate)
extends Record
implements TupleLifecycle<Tuple_>
-
Constructor Summary
ConstructorsConstructorDescriptionConditionalTupleLifecycle(TupleLifecycle<Tuple_> downstreamLifecycle, ai.timefold.solver.core.impl.bavet.common.tuple.ConditionalTupleLifecycle.TuplePredicate<Tuple_> predicate) Creates an instance of aConditionalTupleLifecyclerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedownstreamLifecyclerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidai.timefold.solver.core.impl.bavet.common.tuple.ConditionalTupleLifecycle.TuplePredicate<Tuple_>Returns the value of thepredicaterecord component.voidtoString()Returns a string representation of this record class.void
-
Constructor Details
-
ConditionalTupleLifecycle
public ConditionalTupleLifecycle(TupleLifecycle<Tuple_> downstreamLifecycle, ai.timefold.solver.core.impl.bavet.common.tuple.ConditionalTupleLifecycle.TuplePredicate<Tuple_> predicate) Creates an instance of aConditionalTupleLifecyclerecord class.- Parameters:
downstreamLifecycle- the value for thedownstreamLifecyclerecord componentpredicate- the value for thepredicaterecord component
-
-
Method Details
-
insert
- Specified by:
insertin interfaceTupleLifecycle<Tuple_ extends AbstractTuple>
-
update
- Specified by:
updatein interfaceTupleLifecycle<Tuple_ extends AbstractTuple>
-
retract
- Specified by:
retractin interfaceTupleLifecycle<Tuple_ extends AbstractTuple>
-
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). -
downstreamLifecycle
Returns the value of thedownstreamLifecyclerecord component.- Returns:
- the value of the
downstreamLifecyclerecord component
-
predicate
public ai.timefold.solver.core.impl.bavet.common.tuple.ConditionalTupleLifecycle.TuplePredicate<Tuple_> predicate()Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-