public String toString(Object object, ConverterContext context) {
if (object instanceof Range) {
Range range = (Range) object;
if (range.size() == 0) {
return arrayToString(new Object[]{range.lower()}, context);
}
return arrayToString(new Object[]{range.lower(), range.upper()}, context);
}
else {
return "";