/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// your code goes here
}
}
interface BaseFiltroDTO { }
class FiltroHorariosDTO implements BaseFiltroDTO { }
interface BaseRespostasDTO { }
public BaseFiltroDTO getFiltro();
public List<? extends BaseRespostasDTO> getRespostas();
public void setRespostas(final List<? extends BaseRespostasDTO> respostas);
}
class RespostaHorariosDTO implements BaseRespostasDTO {
private static final long serialVersionUID = 5505724855293262084L;
// Atributos e métodos acessores
}
class RelatorioHorariosDTO implements BaseRelatorioDTO {
private static final long serialVersionUID = -3828618335258371680L;
private FiltroHorariosDTO filtro = new FiltroHorariosDTO();
private List<RespostaHorariosDTO> respostas = new ArrayList<RespostaHorariosDTO>();
@Override
public FiltroHorariosDTO getFiltro() {
return this.filtro;
}
@Override
public List<RespostaHorariosDTO> getRespostas() {
return this.respostas;
}
/**
* @param respostasParam the respostas to set
*/
@Override
public void setRespostas(final List<? extends BaseRespostasDTO> respostasParam) {
this.respostas = (List<RespostaHorariosDTO>)respostasParam;
}
}