Name: Added equals and deprecated equalsName.

Change-Id: Ic8ed4b2d923a3427a402a23d15485951ac07ef0f