class RangeHelper {

    public long getTotalLength(final List<Range> ranges) {
        int totalLength = 0;
        for (Range range : ranges) {
            totalLength += getRangeLength(range);
        }
        return totalLength;
    }

}