243244245246247248249250251252253
private void processTypeRange(Transaction t, TransactionType type, int min, double d) { Range2 range = type.findOrCreateRange2(min); if (!t.isSuccess()) { range.incFails(); } range.incCount(); range.setSum(range.getSum() + d); }