public class ActivityReport<R extends ReportItem> extends Object implements Serializable
Constructor and Description |
---|
ActivityReport(String reportType)
Construct new report of given type
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(R item)
Add a new item to the report.
|
void |
addItems(Collection<R> items)
Add a new collection of items to the report.
|
Collection<R> |
getItems() |
String |
getReportType()
Get type of report.
|
boolean |
hasItems() |
String |
toString() |
public ActivityReport(String reportType)
reportType
- Type of reportpublic String getReportType()
public void addItem(R item)
item
- Item being addedpublic void addItems(Collection<R> items)
items
- Items being addedpublic boolean hasItems()
public Collection<R> getItems()
Copyright © 2017 JBoss by Red Hat. All rights reserved.