result &= getUserName() != null ? getUserName().equals(user.getUserName()) : user.getUserName() == null;  result &= getFirstName() != null ? getFirstName().equals(user.getFirstName()) : user.getFirstName() == null;  result &= getMiddleName() != null ? getMiddleName().equals(user.getMiddleName()) : user.getMiddleName() == null;  result &= getLastName() != null ? getLastName().equals(user.getLastName()) : user.getLastName() == null;  result &= user.getUserId() == getUserId(); result &= user.getGroupId() == getGroupId();  return result;
    public boolean equals(Object ob1) {        User user = (User) ob1;        return user.getUserName().equals(getUserName())                && user.getFirstName().equals(getFirstName())                && user.getMiddleName().equals(getMiddleName())                && user.getLastName().equals(getLastName())                && user.getUserId() == getUserId()                && user.getGroupId() == getGroupId();    }