class SplitByPagesParameters extends AbstractSplitByPageParameters {

    @Override
    public Set<Integer> getPages(int upperLimit) {
        return Collections
                .unmodifiableSet(pages.stream().filter(p -> p <= upperLimit && p > 0).collect(Collectors.toSet()));
    }

}