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


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

import java.util.List;

public class IndexDiffProcessor implements DiffProcessor<IndexMeta> {

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