org.javers.core.diff.changetype.container.ArrayChange 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.diff.changetype.PropertyChangeMetadata;
import java.util.List;
import java.util.Objects;
/**
* Changes on an Array property
*
* @author pawel szymczyk
*/
public final class ArrayChange extends ContainerChange {
public ArrayChange(PropertyChangeMetadata metadata, List changes) {
super(metadata, changes);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof ArrayChange) {
ArrayChange that = (ArrayChange) obj;
return super.equals(that);
}
return false;
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode());
}
}