This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Default implementation of {@link #getRef()} method based on type and id. | |
* <p> | |
* This method create ref which looks like this: "type_name:id" | |
* This is most often used in API as ref, but there is no guaranty. | |
*/ | |
@NonNull | |
static String createRef(@EntityType int entityType, | |
@Nullable String entityId) { | |
return EntityType.Utils.getApiName(entityType) + ":" + entityId; |