-
Notifications
You must be signed in to change notification settings - Fork 177
/
Copy pathPerson.java
61 lines (51 loc) · 1.33 KB
/
Person.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
package com.amigoscode.beans;
public class Person {
private final Integer id;
private final String firstName;
private final String lastName;
private final String email;
private final String gender;
private final Integer age;
public Person(Integer id,
String firstName,
String lastName,
String email,
String gender,
Integer age) {
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
this.email = email;
this.gender = gender;
this.age = age;
}
public Integer getId() {
return id;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public String getEmail() {
return email;
}
public String getGender() {
return gender;
}
public Integer getAge() {
return age;
}
@Override
public String toString() {
return "Person{" +
"id=" + id +
", firstName='" + firstName + '\'' +
", lastName='" + lastName + '\'' +
", email='" + email + '\'' +
", gender='" + gender + '\'' +
", age=" + age +
'}';
}
}