-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.java
59 lines (48 loc) · 1.41 KB
/
User.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
import java.io.Serializable;
public class User implements Serializable {
private String firstname;
private String lastname;
private String birthdate;
private double salary;
private Gender gender;
private String division;
private String position;
public enum Gender {
MALE, FEMALE, OTHER
}
public User(String firstname, String lastname, String birthdate, double salary, Gender gender, String division, String position) {
this.firstname = firstname;
this.lastname = lastname;
this.birthdate = birthdate;
this.salary = salary;
this.gender = gender;
this.division = division;
this.position = position;
}
public String getFirstname() {
return firstname;
}
public String getLastname() {
return lastname;
}
public String getBirthdate() {
return birthdate;
}
public double getSalary() {
return salary;
}
public Gender getGender() {
return gender;
}
public String getDivision() {
return division;
}
public String getPosition() {
return position;
}
@Override
public String toString() {
return "User [firstname=" + firstname + ", lastname=" + lastname + ", birthdate=" + birthdate + ", salary=" + salary
+ ", gender=" + gender + ", division=" + division + ", position=" + position + "]";
}
}