Skip to content

Instantly share code, notes, and snippets.

@MafaldaLandeiro
Created March 26, 2016 16:14
Show Gist options
  • Select an option

  • Save MafaldaLandeiro/ab80eb1177cde9c83a0d to your computer and use it in GitHub Desktop.

Select an option

Save MafaldaLandeiro/ab80eb1177cde9c83a0d to your computer and use it in GitHub Desktop.
Person object
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