equalByNamespacedKeyIfExistElseByEntityType

fun equalByNamespacedKeyIfExistElseByEntityType(entity1: Entity?, entity2: Entity?): Boolean

Compares by custom-entity key when both have one, otherwise by EntityType.