package ru.matevosyan;

import java.util.Calendar;

/**
 * User class.
 * Created on 07.05.2017.
 * @author Matevosyan Vardan
 * @version 1.0
 */

public class User {


    private String name;
    private int children;
    private Calendar 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;
    }

    /**
     * Constructor.
     */


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

    
}
@@ -319,16 +319,30 @@
 is == o)
+ %7B%0A           
  return 
@@ -347,16 +347,26 @@
 n true;%0A
+        %7D%0A
         
@@ -409,16 +409,30 @@
 Class())
+ %7B%0A           
  return 
@@ -437,16 +437,26 @@
 n false;
+%0A        %7D
 %0A%0A      
@@ -518,16 +518,30 @@
 hildren)
+ %7B%0A           
  return 
@@ -539,32 +539,42 @@
   return false;%0A
+        %7D%0A
         if (name
@@ -628,16 +628,30 @@
 != null)
+ %7B%0A           
  return 
@@ -649,32 +649,42 @@
   return false;%0A
+        %7D%0A
         return b

change equals