-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCarrinho.java
More file actions
57 lines (49 loc) · 1.08 KB
/
Carrinho.java
File metadata and controls
57 lines (49 loc) · 1.08 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
package com.github.friedrichmatheus;
import java.math.BigDecimal;
public class Carrinho {
public enum Categoria {
Tecnologia, Esporte, Vestuario, Equipamentos, Lazer
}
Integer id;
String nome;
BigDecimal valor;
Boolean temEstoque;
Categoria categoria;
public Carrinho(Integer id, String nome, BigDecimal valor, Boolean temEstoque, Categoria categoria) {
this.id = id;
this.nome = nome;
this.valor = valor;
this.temEstoque = temEstoque;
this.categoria = categoria;
}
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 Categoria getCategoria() {
return categoria;
}
public void setCategoria(Categoria categoria) {
this.categoria = categoria;
}
public Boolean getTemEstoque() {
return temEstoque;
}
public void setTemEstoque(Boolean temEstoque) {
this.temEstoque = temEstoque;
}
}