Add delta isModified
This commit is contained in:
parent
ccf07f4216
commit
f95a46b634
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user