class RangeHelper {

    public boolean isSatisfiable(final Iterable<Range> ranges, final long streamLength) {
        for (Range range : ranges) {
            if (range.getTo() >= streamLength || !isRangeValid(range)) {
                return false;
            }
        }

        return true;
    }

}