Add delta isModified

This commit is contained in:
Andrea Cavalli 2021-06-01 17:08:37 +02:00
parent ccf07f4216
commit f95a46b634

View File

@ -1,5 +1,11 @@
package it.cavallium.dbengine.database;
import java.util.Objects;
import org.jetbrains.annotations.Nullable;
public record Delta<T>(@Nullable T previous, @Nullable T current) {}
public record Delta<T>(@Nullable T previous, @Nullable T current) {
public boolean isModified() {
return !Objects.equals(previous, current);
}
}