package de.reneruck.contactor.models;

/**
 * Created by reneruck on 19/06/15.
 */
public class Contact {

    private int id = -1;
    private String firstName;
    private String lastName;
    private String email;
    private String phoneWork;
    private String phonePrivate;

    public String getName() {
        return firstName + " " + lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public String getEmail() {
        return email;
    }

    public String getPhoneWork() {
        return phoneWork;
    }

    public String getPhonePrivate() {
        return phonePrivate;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPhoneWork(String phoneWork) {
        this.phoneWork = phoneWork;
    }

    public void setPhonePrivate(String phonePrivate) {
        this.phonePrivate = phonePrivate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}

package de.reneruck.contactor.models;

/**
 * Created by reneruck on 19/06/15.
 */
public class Contact {

    private int id = -1;
    private String firstName;
    private String lastName;
    private String email;
    private String phoneWork;
    private String phonePrivate;

    public Contact(int id, String firstName, String lastName, String email, String phoneWork, String phonePrivate) {
        this.id = id;
        this.firstName = firstName;
        this.lastName = lastName;
        this.email = email;
        this.phoneWork = phoneWork;
        this.phonePrivate = phonePrivate;
    }

    public String getName() {
        return firstName + " " + lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public String getEmail() {
        return email;
    }

    public String getPhoneWork() {
        return phoneWork;
    }

    public String getPhonePrivate() {
        return phonePrivate;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPhoneWork(String phoneWork) {
        this.phoneWork = phoneWork;
    }

    public void setPhonePrivate(String phonePrivate) {
        this.phonePrivate = phonePrivate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}

define constructor with all possible fields in its signature