if (dataset == null) {
throw new IllegalArgumentException("Null 'dataset' argument.");
}
Range result = null;
if (dataset instanceof RangeInfo) {
final RangeInfo info = (RangeInfo) dataset;
result = info.getRangeBounds(includeInterval);
} else {
result = iterateCategoryRangeBounds(dataset, includeInterval);
}
return result;
}