- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 28 of file PeriodSet.java.
◆ PeriodSet()
org.turro.financials.report.PeriodSet.PeriodSet |
( |
| ) |
|
◆ fillGapsTillNow()
Definition at line 45 of file PeriodSet.java.
46 AccountReportPeriod arp = first();
48 CheckDate cd =
new CheckDate(arp.getYear(), arp.getMonth(), 1, 0, 0, 0);
49 Date now =
new Date();
50 while(cd.compareMonthYear(now) == -1) {
51 AccountReportPeriod a =
new AccountReportPeriod(cd.getYear(), cd.getMonth());
◆ getCurrentPeriod()
PeriodSet org.turro.financials.report.PeriodSet.getCurrentPeriod |
( |
int |
count | ) |
|
Definition at line 60 of file PeriodSet.java.
61 if(year == 0 || month == 0) {
62 CheckDate cd =
new CheckDate();
63 cd.addMonths(-(count/2));
65 month = cd.getMonth();
69 for(AccountReportPeriod arp : tailSet(
new AccountReportPeriod(year, month))) {
71 if(c++ > count - 1)
break;
◆ getPeriod()
Definition at line 36 of file PeriodSet.java.
37 for(AccountReportPeriod p :
this) {
38 if(p.equals(period)) {
◆ incrementPeriod()
void org.turro.financials.report.PeriodSet.incrementPeriod |
( |
int |
amount | ) |
|
Definition at line 76 of file PeriodSet.java.
77 CheckDate cd =
new CheckDate(year, month, 1, 0, 0, 0);
80 month = cd.getMonth();
The documentation for this class was generated from the following file: