Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package idv.hank.template;
- import java.util.List;
- public abstract class TemplateJob<T, R> {
- private int year;
- private int month;
- protected TemplateJob(int year, int month) {
- this.year = year;
- this.month = month;
- }
- private void execute() {
- List<T> report = getReport(year, month);
- List<R> result = getRows(report);
- }
- protected abstract List<T> getReport(int year, int month);
- protected abstract List<R> getRows(List<T> list);
- }
Add Comment
Please, Sign In to add comment