/*
* 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.LogradouroPrisao;
/**
*
* @author Andre
*/
public class LogradouroPrisaoFactory implements LogradouroFactory {
@Override
public Logradouro criarLogradouro(int indice) {
LogradouroPrisao prisao = new LogradouroPrisao();
prisao.setIndice(indice);
prisao.setNome("Prisão");
return prisao;
}
}