public void addCount(ValidationResultType resultType) { if (errorCounts.containsKey(resultType.getTypePrettyName())) { errorCounts.get(resultType.getTypePrettyName()).addAndGet(1); } else { errorCounts.put(resultType.getTypePrettyName(), new AtomicInteger(1)); } }
public ValidationResultsMetaData() { for (ValidationResultType resultType : ValidationResultType.values()) { errorCounts.put(resultType.getTypePrettyName(), new AtomicInteger(0)); } }