class SubContingenciesProvider implements ContingenciesProvider {

    @Override
    public List<Contingency> getContingencies(Network network) {
        List<Contingency> fullList = delegate.getContingencies(network);
        int fullSize = fullList.size();
        int start = partition.startIndex(fullSize);
        int end = partition.endIndex(fullSize);
        return new ArrayList<>(fullList.subList(start, end));
    }

    public  SubContingenciesProvider(ContingenciesProvider delegate, Partition partition);

}