package comp1110.ass2.testdata;

import java.util.ArrayList;
import java.util.List;

public class TotalIslandsScoreDataLoader extends DataLoader<List<Integer>> {
    public TotalIslandsScoreDataLoader(){
        super();
    }

    @Override
    protected List<Integer> processLine(String line) {
        line = line.substring(1, line.length() - 1);

        List<Integer> score = new ArrayList<>();
        for(String s : line.split(", ")){
            score.add(Integer.parseInt(s));
        }
        return score;
    }
    @Override
    protected String getFileName() {
        return "calculateTotalIslandsScore";
    }
}
