Guest User

Untitled

a guest
Mar 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. package idv.hank.template;
  2.  
  3. import java.util.List;
  4.  
  5. public abstract class TemplateJob<T, R> {
  6.  
  7. private int year;
  8. private int month;
  9.  
  10. protected TemplateJob(int year, int month) {
  11. this.year = year;
  12. this.month = month;
  13. }
  14.  
  15. private void execute() {
  16. List<T> report = getReport(year, month);
  17. List<R> result = getRows(report);
  18. }
  19.  
  20. protected abstract List<T> getReport(int year, int month);
  21.  
  22. protected abstract List<R> getRows(List<T> list);
  23. }
Add Comment
Please, Sign In to add comment