-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathNCM.java
More file actions
110 lines (89 loc) · 2.43 KB
/
NCM.java
File metadata and controls
110 lines (89 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package br.com.brasilapi.api;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
/**
* Informações referentes a NCMs. Nomenclatura Comum do Mercosul (NCM).
*
* @author Sávio Andres
* @see <a href=
* "https://brasilapi.com.br/docs#tag/NCM">https://brasilapi.com.br/docs#tag/NCM</a>
*/
public class NCM extends API {
private String codigo;
private String descricao;
@SerializedName("data_inicio")
private String dataInicio;
@SerializedName("data_fim")
private String dataFim;
@SerializedName("tipo_ato")
private String tipoAto;
@SerializedName("numero_ato")
private String numeroAto;
@SerializedName("ano_ato")
private String anoAto;
public String getCodigo() {
return codigo;
}
public void setCodigo(String codigo) {
this.codigo = codigo;
}
public String getDescricao() {
return descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
public String getDataInicio() {
return dataInicio;
}
public void setDataInicio(String dataInicio) {
this.dataInicio = dataInicio;
}
public String getDataFim() {
return dataFim;
}
public void setDataFim(String dataFim) {
this.dataFim = dataFim;
}
public String getTipoAto() {
return tipoAto;
}
public void setTipoAto(String tipoAto) {
this.tipoAto = tipoAto;
}
public String getNumeroAto() {
return numeroAto;
}
public void setNumeroAto(String numeroAto) {
this.numeroAto = numeroAto;
}
public String getAnoAto() {
return anoAto;
}
public void setAnoAto(String anoAto) {
this.anoAto = anoAto;
}
@Override
public int hashCode() {
return Objects.hash(anoAto, codigo, dataFim, dataInicio, descricao, numeroAto, tipoAto);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
NCM other = (NCM) obj;
return Objects.equals(anoAto, other.anoAto) && Objects.equals(codigo, other.codigo)
&& Objects.equals(dataFim, other.dataFim) && Objects.equals(dataInicio, other.dataInicio)
&& Objects.equals(descricao, other.descricao) && Objects.equals(numeroAto, other.numeroAto)
&& Objects.equals(tipoAto, other.tipoAto);
}
@Override
public String toString() {
return "NCM [codigo=" + codigo + ", descricao=" + descricao + ", dataInicio=" + dataInicio + ", dataFim="
+ dataFim + ", tipoAto=" + tipoAto + ", numeroAto=" + numeroAto + ", anoAto=" + anoAto + "]";
}
}