public static Range findRangeBounds(CategoryDataset dataset,
boolean includeInterval) {
ParamChecks.nullNotPermitted(dataset, "dataset");
Range result;
if (dataset instanceof RangeInfo) {
RangeInfo info = (RangeInfo) dataset;
result = info.getRangeBounds(includeInterval);
} else {
result = iterateRangeBounds(dataset, includeInterval);
}
return result;
}