/** * Checks if the table contains a symbol with the given resource type / name. * * @param resourceType the resource type * @param name the name * @return does the table contain a symbol with the given resource type / name? */ public boolean contains(@NonNull String resourceType, @NonNull String name) { return symbols.containsKey(key(resourceType, name)); }
/** * Obtains a unique key for a symbol. * * @param symbol the symbol * @return the unique ID */ @NonNull private static String key(@NonNull Symbol symbol) { return key(symbol.getResourceType(), symbol.getName()); }