@Override
    public boolean equals(Object obj) 
    {
        if (obj == null) 
        {
            return false;
        }
        if (getClass() != obj.getClass()) 
        {
            return false;
        }
        final DogDemo other = (DogDemo) obj;
        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) 
        {
            return false;
        }
        return true;
    }