private static String formatPair(Pair<?, ?> o) {
Object firstObj = o.getFirst();
Object secondObj = o.getSecond();
if ((firstObj instanceof Integer) && (secondObj instanceof FXVolQuoteType)) {
Integer first = (Integer) firstObj;
FXVolQuoteType second = (FXVolQuoteType) secondObj;
StringBuilder sb = new StringBuilder();
sb.append(Integer.toString(first));
sb.append("/");
sb.append(second.name());
return sb.toString();
}
return o.toString();
}