package com.yeejoin.amos.boot.module.jg.biz.discardOrder.wrapper;

import com.yeejoin.amos.boot.module.jg.biz.discardOrder.factory.support.DiscardOrderCheck;
import com.yeejoin.amos.boot.module.jg.biz.discardOrder.factory.support.SupportableDiscardOrderCheck;

import java.util.List;

public class DiscardOrderCheckWrapper implements DiscardOrderCheck {

    private final SupportableDiscardOrderCheck supportableDiscardOrderCheck;

    public DiscardOrderCheckWrapper(SupportableDiscardOrderCheck supportableDiscardOrderCheck) {
        this.supportableDiscardOrderCheck = supportableDiscardOrderCheck;
    }

    @Override
    public Boolean check(List<String> records) {
        return supportableDiscardOrderCheck.check(records);
    }
}
