Skip to content

Instantly share code, notes, and snippets.

@lovewithmind
Last active June 12, 2021 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lovewithmind/5dccc47626fb840ac17e08c4cfb68411 to your computer and use it in GitHub Desktop.
Save lovewithmind/5dccc47626fb840ac17e08c4cfb68411 to your computer and use it in GitHub Desktop.
Person data class
public class Person {
private final Integer identificationNumber;
private final String name;
private final String email;
private final String phoneNumber;
private final String mobileNumber;
private final Address homeAddress;
private final Address officeAddress;
public Person(final Integer identificationNumber,
final String name,
final String email,
final String phoneNumber,
final String mobileNumber,
final Address homeAddress,
final Address officeAddress) {
this.identificationNumber = identificationNumber;
this.name = name;
this.email = email;
this.phoneNumber = phoneNumber;
this.mobileNumber = mobileNumber;
this.homeAddress = homeAddress;
this.officeAddress = officeAddress;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment