Guest User

Untitled

a guest
Oct 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. package domain.builder;
  2.  
  3. /**
  4. * Abstract Builder
  5. *
  6. * @author Pedro Oliveira
  7. */
  8. public abstract class Builder<T> {
  9.  
  10. protected final T instance;
  11.  
  12. public Builder(T instance) {
  13. this.instance = instance;
  14. preencherValoresPadroes();
  15. }
  16.  
  17. abstract void preencherValoresPadroes();
  18.  
  19. public abstract T build();
  20. }
Add Comment
Please, Sign In to add comment