Rev 182 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
package br.com.ec.domain.model.tipos;
public enum TipoReposicaoMinima
{
REPOR_1X
(new Integer(1),
"REPOSIÇÃO 1X"),
REPOR_2X
(new Integer(2),
"REPOSIÇÃO 2X"),
REPOR_3X
(new Integer(3),
"REPOSIÇÃO 3X");
private Integer tipo
;
private String descricao
;
private TipoReposicaoMinima
(Integer tipo,
String descricao
) {
this.
tipo = tipo
;
this.
descricao = descricao
;
}
public String getDescricao
() {
return descricao
;
}
public Integer getValor
() {
return tipo
;
}
public static TipoReposicaoMinima parse
(String tipo
) {
for (TipoReposicaoMinima item : TipoReposicaoMinima.
values()) {
if (item.
getValor().
equals(tipo
)) {
return item
;
}
}
return null;
}
}