src/main/java/com/solostudios/omnivoxscraper/impl/utils/index/OmniPageIndex.java
/**
     * Builds an internationalized map from the services map and correct language map.
     *
     * @param services    The service map with which to build the i18ned map.
     * @param i18nIndexes The language map with which to build the i18ned map.
     */
Builds an internationalized map from the services map and correct language map.
@param services    The service map with which to build the i18ned map.
@param i18nIndexes The language map with which to build the i18ned map.
Builds an internationalized map from the services map and correct language map . @param services The service map with which to build the i18ned map . @param i18nIndexes The language map with which to build the i18ned map .
private void buildServicesIndex(Map<String, URL> services, Map<String, String> i18nIndexes) {
        for (Map.Entry<String, String> i18nEntry : i18nIndexes.entrySet()) {
            if (!services.containsKey(i18nEntry.getValue()))
                logger.warn("Could not find service for entry {{}}. Marking it as null.", i18nEntry);
            serviceUrls.put(i18nEntry.getKey(), services.remove(i18nEntry.getValue()));
        }
        logger.debug("Here is the i18n map: {}", serviceUrls);
    }
private void buildServicesIndex ( Map < String , URL > services , Map < String , String > i18nIndexes ) { for ( Map . Entry < String , String > i18nEntry : i18nIndexes . entrySet ( ) ) { if ( ! services . containsKey ( i18nEntry . getValue ( ) ) ) logger . warn ( "Could not find service for entry {{}}. Marking it as null." , i18nEntry ) ; serviceUrls . put ( i18nEntry . getKey ( ) , services . remove ( i18nEntry . getValue ( ) ) ) ; } logger . debug ( "Here is the i18n map: {}" , serviceUrls ) ; }
Builds an internationalized map from the services map and correct language map.
Builds an internationalized map from the services map and correct language map .