class ModisUtils {

    public static Range getRangeFromString(String rangeString) {
        final Range range = new Range();
        final String[] intStringArray = StringUtils.toStringArray(rangeString, ",");

        final int start = Integer.parseInt(intStringArray[0]);
        final int stop = Integer.parseInt(intStringArray[1]);
        if (start < stop) {
            range.setMin(start);
            range.setMax(stop);
        } else {
            range.setMin(stop);
            range.setMax(start);
        }

        return range;
    }

}