org.javers.core.diff.changetype.container.ListChange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javers-core Show documentation
Show all versions of javers-core Show documentation
JaVers - object auditing and diff framework for Java
package org.javers.core.diff.changetype.container;
import org.javers.core.commit.CommitMetadata;
import org.javers.core.metamodel.object.GlobalId;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
/**
* @author pawel szymczyk
*/
public final class ListChange extends CollectionChange {
public ListChange(GlobalId affectedCdoId, String propertyName, List changes) {
super(affectedCdoId, propertyName, changes, Optional.empty());
}
public ListChange(GlobalId affectedCdoId, String propertyName, List changes, Optional commitMetadata) {
super(affectedCdoId, propertyName, changes, commitMetadata);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof ListChange) {
ListChange that = (ListChange) obj;
return super.equals(that);
}
return false;
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode());
}
}