forked from osterholt/scrum-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHistory.java
48 lines (39 loc) · 1.1 KB
/
History.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
import java.time.LocalDateTime;
/**
* @author Evelyn Ellis
* @version v1.0
* Date: 10/12/2023
*/
public class History {
private LocalDateTime date;
private User user;
private String change;
/*
*
* date, user, change --> task has ARRAY LIST OF INSTANCES
*/
public History(LocalDateTime date, User user, String change){
this.date = date;
this.user = user;
this.change = change;
}
public LocalDateTime getDate(){
return date;
}
public User getUser(){
return user;
}
public String getChange(){
return change;
}
public String toString(){
return date.toString() + " " + user.getFirstName() + " " + user.getLastName() + " " + change;
}
// test
/*public static void main(String[] args) {
User myUser = new User("Evie", "Ellis", "[email protected]", "B3llyR@$h");
Date myDate = new Date(1000000000);
History myHistory = new History(myDate, myUser, "popped and pushed their shit");
System.out.println(myHistory.toString());
}*/
}