-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathProduto.java
More file actions
61 lines (46 loc) · 1.02 KB
/
Produto.java
File metadata and controls
61 lines (46 loc) · 1.02 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
package com.github.danielmediote;
import java.math.BigDecimal;
public class Produto {
private Integer id;
private String nome;
private BigDecimal valor;
private String categoria;
private Boolean temEstoque;
public Produto(Integer id, String nome, BigDecimal valor, String categoria, Boolean temEstoque) {
this.id = id;
this.nome = nome;
this.valor = valor;
this.categoria = categoria;
this.temEstoque = temEstoque;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public BigDecimal getValor() {
return valor;
}
public void setValor(BigDecimal valor) {
this.valor = valor;
}
public String getCategoria() {
return categoria;
}
public void setCategoria(String categoria) {
this.categoria = categoria;
}
public Boolean getTemEstoque() {
return temEstoque;
}
public void setTemEstoque(Boolean temEstoque) {
this.temEstoque = temEstoque;
}
}