public static void logSummary(Iterable<GraphBuilderAnnotation> gbas) { // an EnumMap would be nice, but Integers are immutable... int[] counts = new int[Variety.values().length]; LOG.info("Summary (number of each type of annotation):"); for (GraphBuilderAnnotation gba : gbas) ++counts[gba.variety.ordinal()]; for (Variety v : Variety.values()) LOG.info(" {} - {}", v.toString(), counts[v.ordinal()]); }
public String getMessage() { return variety.getMessage(refs); }