if (!overviewMap.containsKey(ungroupedObject.getThrowableType())) { overviewMap.put(ungroupedObject.getThrowableType(), groupedObjects); } else { groupedObjects = overviewMap.get(ungroupedObject.getThrowableType()); groupedObjects.add(ungroupedObject);
/** * Returns the styled text for a specific column. * * @param data * The data object to extract the information from. * @param enumId * The enumeration ID. * @return The styled string containing the information from the data object. */ private StyledString getStyledTextForColumn(AggregatedExceptionSensorData data, Column enumId) { switch (enumId) { case FQN: return new StyledString(data.getThrowableType()); case INVOCATION_AFFILLIATION: int percentage = (int) (data.getInvocationAffiliationPercentage() * 100); int invocations = 0; if (null != data.getInvocationParentsIdSet()) { invocations = data.getInvocationParentsIdSet().size(); } return TextFormatter.getInvocationAffilliationPercentageString(percentage, invocations); case CREATED: return new StyledString(String.valueOf(data.getCreated())); case RETHROWN: return new StyledString(String.valueOf(data.getPassed())); case HANDLED: return new StyledString(String.valueOf(data.getHandled())); default: return new StyledString("error"); } }