-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCareer.java
90 lines (70 loc) · 2.03 KB
/
Career.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import java.util.ArrayList;
import java.util.List;
public class Career {
private int id;
private String position; // online,hybrid,office
private Technology technology;
private String deadline;
private String description;
private Company company;
private final List<Person> applicants;
public Career(int id, String position, String deadline, Company company, String description,
Technology technology) {
this.id = id;
this.position = position;
this.deadline = deadline;
this.company = company;
this.description = description;
this.technology = technology;
applicants = new ArrayList<>();
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
public String getDeadline() {
return deadline;
}
public void setDeadline(String deadline) {
this.deadline = deadline;
}
public Company getCompany() {
return company;
}
public void setCompany(Company company) {
this.company = company;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Technology getTechnology() {
return technology;
}
public void setTechnology(Technology technology) {
this.technology = technology;
}
public List<Person> getApplicants() {
return applicants;
}
public void addApplicants(Person person) {
applicants.add(person);
}
public void removeApplicants(Person person) {
applicants.remove(person);
}
@Override
public String toString() {
return "Career{" + "id=" + id + ", Position=" + position + ", deadline=" + deadline + "," + company + ", applicants=" + applicants.size() + '}';
}
}