for (String suffix : CUSTOM_FIELD_SUFFIXES) {
SummaryFunction function = !prefix.equals("string") && !prefix.equals("boolean")
? (
suffix.equals("0") ? new SumFunction() :
suffix.equals("1") ? new MinFunction() :
suffix.equals("2") ? new MaxFunction() : null
)
: new CountFunction();
customFieldsToDefaultFunctions.put(prefix + suffix, function);
}
}