return 7;
}
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
final IAPIStateDTO state;
if (this.states != null) {
final SortedMap<String, IAPIStateDTO> statesMap = Maps.newTreeMap();
statesMap.putAll(this.states);
final List<String> keys = new ArrayList<String>(statesMap.keySet());
checkState(rowIndex >= 0);
checkState(rowIndex < keys.size());
state = statesMap.get(keys.get(rowIndex));
if (state != null) {
switch (columnIndex) {
case 0:
return keys.get(rowIndex);
case 1:
return state.getStatus();
case 2:
if (state.getDescription().isPresent()) {
return state.getDescription().get().getDescription();
} else {
return "";
}
case 3:
return state.getPing();
case 4:
return state.getRetrieve();
case 5:
return state.getRecords();
case 6:
return state.getTime();
default:
return null;
}
} else {
return null;