コード例 #1
0
 private void logCause(boolean b, String cause, Map<String, Integer> causes, int total) {
   if (!causes.containsKey(cause)) logCause(b, cause, 0, total);
   else logCause(b, cause, causes.get(cause), total);
 }
コード例 #2
0
 private int causeCount(String cause, Map<String, Integer> causes) {
   if (causes.containsKey(cause)) return causes.get(cause);
   else return 0;
 }