Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save donatasnicequestion/3044247 to your computer and use it in GitHub Desktop.
Save donatasnicequestion/3044247 to your computer and use it in GitHub Desktop.
Snippet of CRUDPersonsTaskFlowController.java
public class CRUDPersonsTaskFlowController {
private List<Person> personList;
.. getter and setter omitted..
/** Copy person by using copy constructor
*
* @param person person to copy
*/
public void copyPerson(Person person) {
personList.add(new Person(person));
}
.. test data initialization code omitted..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment