| 1 | package com.amigoscode.beans; |
| 2 | |
| 3 | public class Person { |
| 4 | |
| 5 | private final Integer id; |
| 6 | private final String firstName; |
| 7 | private final String lastName; |
| 8 | private final String email; |
| 9 | private final String gender; |
| 10 | private final Integer age; |
| 11 | |
| 12 | public Person(Integer id, |
| 13 | String firstName, |
| 14 | String lastName, |
| 15 | String email, |
| 16 | String gender, |
| 17 | Integer age) { |
| 18 | this.id = id; |
| 19 | this.firstName = firstName; |
| 20 | this.lastName = lastName; |
| 21 | this.email = email; |
| 22 | this.gender = gender; |
| 23 | this.age = age; |
| 24 | } |
| 25 | |
| 26 | public Integer getId() { |
| 27 | return id; |
| 28 | } |
| 29 | |
| 30 | public String getFirstName() { |
| 31 | return firstName; |
| 32 | } |
| 33 | |
| 34 | public String getLastName() { |
| 35 | return lastName; |
| 36 | } |
| 37 | |
| 38 | public String getEmail() { |
| 39 | return email; |
| 40 | } |
| 41 | |
| 42 | public String getGender() { |
| 43 | return gender; |
| 44 | } |
| 45 | |
| 46 | public Integer getAge() { |
| 47 | return age; |
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public String toString() { |
| 52 | return "Person{" + |
| 53 | "id=" + id + |
| 54 | ", firstName='" + firstName + '\'' + |
| 55 | ", lastName='" + lastName + '\'' + |
| 56 | ", email='" + email + '\'' + |
| 57 | ", gender='" + gender + '\'' + |
| 58 | ", age=" + age + |
| 59 | '}'; |
| 60 | } |
nothing calls this directly
no outgoing calls
no test coverage detected