org.javers.core.json.typeadapter.change.SetChangeTypeAdapter Maven / Gradle / Ivy
package org.javers.core.json.typeadapter.change;
import org.javers.core.diff.changetype.PropertyChangeMetadata;
import org.javers.core.diff.changetype.container.ContainerChange;
import org.javers.core.diff.changetype.container.ContainerElementChange;
import org.javers.core.diff.changetype.container.SetChange;
import org.javers.core.metamodel.type.TypeMapper;
import java.util.List;
/**
* @author bartosz walacik
*/
class SetChangeTypeAdapter extends ContainerChangeTypeAdapter {
public SetChangeTypeAdapter(TypeMapper typeMapper) {
super(typeMapper);
}
@Override
protected ContainerChange newInstance(PropertyChangeMetadata metadata, List changes) {
return new SetChange(metadata, changes);
}
@Override
public Class getValueType() {
return SetChange.class;
}
}