fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. }
  14. }
  15.  
  16. interface BaseFiltroDTO { }
  17. class FiltroHorariosDTO implements BaseFiltroDTO { }
  18. interface BaseRespostasDTO { }
  19.  
  20. interface BaseRelatorioDTO extends Serializable {
  21.  
  22. public BaseFiltroDTO getFiltro();
  23.  
  24. public List<? extends BaseRespostasDTO> getRespostas();
  25.  
  26. public void setRespostas(final List<? extends BaseRespostasDTO> respostas);
  27. }
  28.  
  29. class RespostaHorariosDTO implements BaseRespostasDTO {
  30.  
  31. private static final long serialVersionUID = 5505724855293262084L;
  32.  
  33. // Atributos e métodos acessores
  34. }
  35.  
  36. class RelatorioHorariosDTO implements BaseRelatorioDTO {
  37.  
  38. private static final long serialVersionUID = -3828618335258371680L;
  39.  
  40. private FiltroHorariosDTO filtro = new FiltroHorariosDTO();
  41. private List<RespostaHorariosDTO> respostas = new ArrayList<RespostaHorariosDTO>();
  42.  
  43. @Override
  44. public FiltroHorariosDTO getFiltro() {
  45. return this.filtro;
  46. }
  47.  
  48. @Override
  49. public List<RespostaHorariosDTO> getRespostas() {
  50. return this.respostas;
  51. }
  52.  
  53. /**
  54.   * @param respostasParam the respostas to set
  55.   */
  56. @Override
  57. public void setRespostas(final List<? extends BaseRespostasDTO> respostasParam) {
  58. this.respostas = (List<RespostaHorariosDTO>)respostasParam;
  59. }
  60. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
Standard output is empty