class PreviewFpsRangeSelectors {

    public static SelectorFunction<Collection<Range<Integer>>, Range<Integer>> rangeWithLowestFps() {
        return new SelectorFunction<Collection<Range<Integer>>, Range<Integer>>() {
            @Override
            public Range<Integer> select(Collection<Range<Integer>> items) {
                if (items.isEmpty()) {
                    return null;
                }

                return Collections.min(items, COMPARATOR_BY_BOUNDS);
            }
        };
    }

}