All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.optaplanner.constraint.streams.bavet.common.LeftTupleLifecycleImpl Maven / Gradle / Ivy

package org.optaplanner.constraint.streams.bavet.common;

import java.util.Objects;

final class LeftTupleLifecycleImpl
        implements TupleLifecycle {

    private final LeftTupleLifecycle leftTupleLifecycle;

    LeftTupleLifecycleImpl(LeftTupleLifecycle leftTupleLifecycle) {
        this.leftTupleLifecycle = Objects.requireNonNull(leftTupleLifecycle);
    }

    @Override
    public void insert(Tuple_ tuple) {
        leftTupleLifecycle.insertLeft(tuple);
    }

    @Override
    public void update(Tuple_ tuple) {
        leftTupleLifecycle.updateLeft(tuple);
    }

    @Override
    public void retract(Tuple_ tuple) {
        leftTupleLifecycle.retractLeft(tuple);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy