Advertisement
Guest User

Untitled

a guest
Jun 15th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1. public class Person {
  2.  
  3.     private String id;
  4.     private String lastName;
  5.     private String firstName;
  6.     private String countyId;
  7.    
  8.     public Person(String id, String lastName, String firstName, String countyId) {
  9.         super();
  10.         this.id = id;
  11.         this.lastName = lastName;
  12.         this.firstName = firstName;
  13.         this.countyId = countyId;
  14.     }
  15.  
  16.     public String getId() {
  17.         return id;
  18.     }
  19.  
  20.     public void setId(String id) {
  21.         this.id = id;
  22.     }
  23.  
  24.     public String getLastName() {
  25.         return lastName;
  26.     }
  27.  
  28.     public void setLastName(String lastName) {
  29.         this.lastName = lastName;
  30.     }
  31.  
  32.     public String getFirstName() {
  33.         return firstName;
  34.     }
  35.  
  36.     public void setFirstName(String firstName) {
  37.         this.firstName = firstName;
  38.     }
  39.  
  40.     public String getCountyId() {
  41.         return countyId;
  42.     }
  43.  
  44.     public void setCountyId(String countyId) {
  45.         this.countyId = countyId;
  46.     }
  47.  
  48.     @Override
  49.     public String toString() {
  50.         return "Person [id=" + id + ", lastName=" + lastName + ", firstName="
  51.                 + firstName + ", countyId=" + countyId + "]";
  52.     }
  53.    
  54.    
  55.    
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement