private final ArrayList<TransactionListItem> list = new ArrayList<>();
private final MainModel model;
private SimpleDate earliestDate, latestDate;
private final ArrayList<TransactionListItem> list = new ArrayList<>();
private final MainModel model;
private SimpleDate earliestDate, latestDate;
}
public void put(LedgerTransaction transaction, SimpleDate date) {
if (done)
throw new IllegalStateException("Can't put new items after done()");
}
public void put(LedgerTransaction transaction, SimpleDate date) {
if (done)
throw new IllegalStateException("Can't put new items after done()");
boolean showMonth = date.month != lastDate.month || date.year != lastDate.year;
list.add(new TransactionListItem(date, showMonth));
}
boolean showMonth = date.month != lastDate.month || date.year != lastDate.year;
list.add(new TransactionListItem(date, showMonth));
}