-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvent.java
76 lines (60 loc) · 1.54 KB
/
Event.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package Class;
import java.lang.reflect.Array;
import java.util.ArrayList;
public class Event
{
private int EventID;
private String Name;
private String Date;
private String Location;
private String Organizer;
//装Attendee的集合
ArrayList<Attendee> AttendeeList=new ArrayList<>();
//constructors
public Event() {
}
public Event(int ID, String name, String date, String location, String organizer) {
this.EventID = ID;
this.Name = name;
this.Date = date;
this.Location = location;
this.Organizer = organizer;
}
//getter and setter
public void setAttendee(Attendee attendee) {
AttendeeList.add(attendee);
}
public ArrayList<Attendee> getAttendee() {
return AttendeeList;
}
public int getID() {
return EventID;
}
public String getName() {
return Name;
}
public String getDate() {
return Date;
}
public String getLocation() {
return Location;
}
public String getOrganizer() {
return Organizer;
}
public void setID(int ID) {
this.EventID = ID;
}
public void setName(String name) {
this.Name = name;
}
public void setDate(String date) {
this.Date = date;
}
public void setLocation(String location) {
this.Location = location;
}
public void setOrganizer(String organizer) {
this.Organizer = organizer;
}
}