public abstract class ReportResultEntity extends Object implements ReportResult
Modifier and Type | Field and Description |
---|---|
protected int |
period |
protected PeriodUnit |
periodUnit |
Constructor and Description |
---|
ReportResultEntity() |
Modifier and Type | Method and Description |
---|---|
int |
getPeriod()
Returns a period which specifies a time span within a year.
|
PeriodUnit |
getPeriodUnit()
Returns the unit of the period.
|
void |
setPeriod(int period) |
void |
setPeriodUnit(String periodUnit) |
protected int period
protected PeriodUnit periodUnit
public int getPeriod()
ReportResult
Returns a period which specifies a time span within a year.
The returned period must be interpreted in conjunction
with the returned PeriodUnit
of ReportResult.getPeriodUnit()
.
ReportResult.getPeriodUnit()
returns PeriodUnit.MONTH
ReportResult.getPeriod()
returns 3
The returned period 3
must be interpreted as
the third month
of the year (i.e. it represents
the month March).
If the ReportResult.getPeriodUnit()
returns PeriodUnit.QUARTER
,
then the returned period 3
must be interpreted as the third
quarter
of the year.
getPeriod
in interface ReportResult
public void setPeriod(int period)
public PeriodUnit getPeriodUnit()
ReportResult
Returns the unit of the period.
getPeriodUnit
in interface ReportResult
PeriodUnit
ReportResult.getPeriod()
public void setPeriodUnit(String periodUnit)
Copyright © 2021. All rights reserved.