Last active
November 12, 2018 08:34
-
-
Save shalithasuranga/185a5668d17b1758cce6c911ee30ece2 to your computer and use it in GitHub Desktop.
This file contains 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
public class Person { | |
private String name; | |
private String city; | |
private int age; | |
private String[] nickNames; | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getCity() { | |
return city; | |
} | |
@BeanConstructor(properties = "name,city,age,nickNames") | |
public Person(String name, String city, int age, String[] nickNames) { | |
super(); | |
this.name = name; | |
this.city = city; | |
this.age = age; | |
this.nickNames = nickNames; | |
} | |
public void setCity(String city) { | |
this.city = city; | |
} | |
public int getAge() { | |
return age; | |
} | |
public void setAge(int age) { | |
this.age = age; | |
} | |
public String[] getNickNames() { | |
return nickNames; | |
} | |
public void setNickNames(String[] nickNames) { | |
this.nickNames = nickNames; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment