Created
March 26, 2016 16:14
-
-
Save MafaldaLandeiro/ab80eb1177cde9c83a0d to your computer and use it in GitHub Desktop.
Person object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.StrutsJasperReport.entity; | |
| public class Person { | |
| private String firstName; | |
| private String lastName; | |
| private Integer age; | |
| /** | |
| * @param firstName | |
| * @param lastName | |
| * @param age | |
| */ | |
| public Person(String firstName, String lastName, int age) { | |
| super(); | |
| this.firstName = firstName; | |
| this.lastName = lastName; | |
| this.age = age; | |
| } | |
| /** | |
| * @return the firstName | |
| */ | |
| public String getFirstName() { | |
| return firstName; | |
| } | |
| /** | |
| * @param firstName | |
| * the firstName to set | |
| */ | |
| public void setFirstName(String firstName) { | |
| this.firstName = firstName; | |
| } | |
| /** | |
| * @return the lastName | |
| */ | |
| public String getLastName() { | |
| return lastName; | |
| } | |
| /** | |
| * @param lastName | |
| * the lastName to set | |
| */ | |
| public void setLastName(String lastName) { | |
| this.lastName = lastName; | |
| } | |
| /** | |
| * @return the age | |
| */ | |
| public int getAge() { | |
| return age; | |
| } | |
| /** | |
| * @param age | |
| * the age to set | |
| */ | |
| public void setAge(int age) { | |
| this.age = age; | |
| } | |
| /* | |
| * (non-Javadoc) | |
| * | |
| * @see java.lang.Object#toString() | |
| */ | |
| @Override | |
| public String toString() { | |
| return "Person [firstName=" + firstName + ", lastName=" + lastName | |
| + ", age=" + age + "]"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment