org.javers.core.json.typeadapter.change.ArrayChangeTypeAdapter 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.json.typeadapter.change;
import org.javers.core.diff.changetype.PropertyChangeMetadata;
import org.javers.core.diff.changetype.container.ArrayChange;
import org.javers.core.diff.changetype.container.ContainerChange;
import org.javers.core.diff.changetype.container.ContainerElementChange;
import org.javers.core.metamodel.type.TypeMapper;
import java.util.List;
/**
* @author bartosz walacik
*/
class ArrayChangeTypeAdapter extends ContainerChangeTypeAdapter {
public ArrayChangeTypeAdapter(TypeMapper typeMapper) {
super(typeMapper);
}
@Override
protected ContainerChange newInstance(PropertyChangeMetadata metadata, List changes) {
return new ArrayChange(metadata, changes);
}
@Override
public Class getValueType() {
return ArrayChange.class;
}
}