All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.swconsultoria.nfe.dom.enuns.AmbienteEnum Maven / Gradle / Ivy

There is a newer version: 4.00.34
Show newest version
package br.com.swconsultoria.nfe.dom.enuns;

/**
 * @author Samuel Oliveira - [email protected]
 * Data: 02/03/2019 - 20:06
 */
public enum AmbienteEnum {

    HOMOLOGACAO("2"),
    PRODUCAO("1");

    private final String codigo;

    AmbienteEnum(String codigo) {
        this.codigo = codigo;
    }

    public String getCodigo() {
        return codigo;
    }

    public static AmbienteEnum getByCodigo(String codigo) {
        for (AmbienteEnum e : values()) {
            if (e.codigo.equals(codigo)) return e;
        }
        throw new IllegalArgumentException();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy