package com.salpa.subject.domain.diff.processor;


import com.salpa.subject.domain.data.ColumnMeta;
import com.salpa.subject.domain.diff.data.FieldDiff;

import java.util.List;

public class ColumnDiffProcessor implements DiffProcessor<ColumnMeta> {

    @Override
    public FieldDiff process(String fieldName, List<ColumnMeta> original, List<ColumnMeta> current) {
        return diffTableField(original, current, fieldName, ColumnMeta::getName);
    }
}
