driver-core/src/main/com/mongodb/ConnectionString.java
private Map<String, List<String>> combineOptionsMaps(final Map<String, List<String>> txtRecordsOptionsMap,
                                                         final Map<String, List<String>> connectionStringOptionsMap) {
        Map<String, List<String>> combinedOptionsMaps = new HashMap<String, List<String>>(txtRecordsOptionsMap);
        for (Map.Entry<String, List<String>> entry : connectionStringOptionsMap.entrySet()) {
            combinedOptionsMaps.put(entry.getKey(), entry.getValue());
        }
        return combinedOptionsMaps;
    }
private Map<String, List<String>> combineOptionsMaps(final Map<String, List<String>> txtRecordsOptionsMap,
                                                         final Map<String, List<String>> connectionStringOptionsMap) {
        Map<String, List<String>> combinedOptionsMaps = new HashMap<String, List<String>>(txtRecordsOptionsMap);
        for (Map.Entry<String, List<String>> entry : connectionStringOptionsMap.entrySet()) {
            combinedOptionsMaps.put(entry.getKey(), entry.getValue());
        }
        return combinedOptionsMaps;
    }
private Map < String , List < String > > combineOptionsMaps ( final Map < String , List < String > > txtRecordsOptionsMap , final Map < String , List < String > > connectionStringOptionsMap ) { Map < String , List < String > > combinedOptionsMaps = new HashMap < String , List < String > > ( txtRecordsOptionsMap ) ; for ( Map . Entry < String , List < String > > entry : connectionStringOptionsMap . entrySet ( ) ) { combinedOptionsMaps . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } return combinedOptionsMaps ; }
even for options which multiple values, e.g. readPreferenceTags
even for options which multiple values e . g . readPreferenceTags