Skip to content

Instantly share code, notes, and snippets.

@shalithasuranga
Last active November 12, 2018 08:34
Show Gist options
  • Save shalithasuranga/185a5668d17b1758cce6c911ee30ece2 to your computer and use it in GitHub Desktop.
Save shalithasuranga/185a5668d17b1758cce6c911ee30ece2 to your computer and use it in GitHub Desktop.
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