/** * Loads one or more CSV format fixing series files. * <p> * If the files contain a duplicate entry an exception will be thrown. * * @param resources the fixing series CSV resources * @return the loaded fixing series, mapped by {@linkplain ObservableId observable ID} * @throws IllegalArgumentException if the files contain a duplicate entry */ public static ImmutableMap<ObservableId, LocalDateDoubleTimeSeries> load(Collection<ResourceLocator> resources) { Collection<CharSource> charSources = resources.stream().map(r -> r.getCharSource()).collect(toList()); return parse(charSources); }