-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCard.java
55 lines (43 loc) · 1.07 KB
/
Card.java
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
// Luca Lombardo, mat. 546688
import java.io.Serializable;
import java.util.ArrayList;
public class Card implements Serializable {
private static final long serialVersionUID = 1L;
String name;
String description;
ArrayList<String> history;
// Costruttori
public Card() {
this.name = "";
this.description = "";
this.history = new ArrayList<String>();
}
public Card(String name, String description) {
this.name = name;
this.description = description;
this.history = new ArrayList<String>();
history.add("toDo");
}
public void move(String destinazione) {
history.add(destinazione);
}
// Getters & Setters
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ArrayList<String> getHistory() {
return history;
}
public void setHistory(ArrayList<String> history) {
this.history = history;
}
}