public void addToCount(long countDelta, String dataType, String rowId, String date) { String hashMapKey = createKey(dataType, rowId, date); CountAndKeyComponents value = counts.get(hashMapKey); if (null == value) { counts.put(hashMapKey, new CountAndKeyComponents(dataType, rowId, date, countDelta)); } else { value.incrementCount(countDelta); } }