package ru.job4j.map;

import java.util.Calendar;

public class User {

    private String name;
    private int children;
    private Calendar birthday;

    public User(String name, int children, Calendar birthday) {
        this.name = name;
        this.children = children;
        this.birthday = birthday;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        User user = (User) o;

        if (children != user.children) return false;
        if (name != null ? !name.equals(user.name) : user.name != null) return false;
        return birthday != null ? birthday.equals(user.birthday) : user.birthday == null;
    }

    @Override
    public int hashCode() {
        int result = name != null ? name.hashCode() : 0;
        result = 31 * result + children;
        result = 31 * result + (birthday != null ? birthday.hashCode() : 0);
        return result;
    }
}

@@ -305,32 +305,468 @@
 irthday;%0A    %7D%0A%0A
+    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public int getChildren() %7B%0A        return children;%0A    %7D%0A%0A    public void setChildren(int children) %7B%0A        this.children = children;%0A    %7D%0A%0A    public Calendar getBirthday() %7B%0A        return birthday;%0A    %7D%0A%0A    public void setBirthday(Calendar birthday) %7B%0A        this.birthday = birthday;%0A    %7D%0A%0A
     @Override%0A  

task 999