Interface that externalizes equality of objects.