/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package banco_imobiliario.AbstractFactoryLogradouro;
import banco_imobiliario.model.Logradouro;
import banco_imobiliario.model.LogradouroNoticia;
/**
*
* @author Andre
*/
public class LogradouroNoticiaFactory implements LogradouroFactory{
@Override
public Logradouro criarLogradouro(int indice) {
LogradouroNoticia noticia = new LogradouroNoticia();
noticia.setIndice(indice);
noticia.setNome("Notícia");
return noticia;
}
}