Package banco_imobiliario.AbstractFactoryLogradouro

Source Code of banco_imobiliario.AbstractFactoryLogradouro.LogradouroPartidaFactory

/*
* 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.LogradouroPartida;

/**
*
* @author Andre
*/
public class LogradouroPartidaFactory implements LogradouroFactory {
   
    @Override
    public Logradouro criarLogradouro(int indice) {
        LogradouroPartida partida = new LogradouroPartida();
        partida.setIndice(indice);       
        partida.setNome("Partida");
        partida.setSalario(indice);
        return partida;
    }
}
TOP

Related Classes of banco_imobiliario.AbstractFactoryLogradouro.LogradouroPartidaFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.