org.optaplanner.constraint.streams.bavet.common.RightTupleLifecycleImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of optaplanner-constraint-streams-bavet Show documentation
Show all versions of optaplanner-constraint-streams-bavet Show documentation
OptaPlanner solves planning problems.
This lightweight, embeddable planning engine implements powerful and scalable algorithms
to optimize business resource scheduling and planning.
This module contains implementation of Constraint streams (Bavet).
package org.optaplanner.constraint.streams.bavet.common;
import java.util.Objects;
final class RightTupleLifecycleImpl
implements TupleLifecycle {
private final RightTupleLifecycle rightTupleLifecycle;
RightTupleLifecycleImpl(RightTupleLifecycle rightTupleLifecycle) {
this.rightTupleLifecycle = Objects.requireNonNull(rightTupleLifecycle);
}
@Override
public void insert(Tuple_ tuple) {
rightTupleLifecycle.insertRight(tuple);
}
@Override
public void update(Tuple_ tuple) {
rightTupleLifecycle.updateRight(tuple);
}
@Override
public void retract(Tuple_ tuple) {
rightTupleLifecycle.retractRight(tuple);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy