/** * Obtains an instance that uses the standard set of reference data. * * @return the loader */ public static SensitivityCsvLoader standard() { return new SensitivityCsvLoader(SensitivityCsvInfoResolver.standard()); }
/** * Obtains an instance that uses the specified set of reference data. * * @param refData the reference data * @return the loader */ public static PositionCsvLoader of(ReferenceData refData) { return new PositionCsvLoader(PositionCsvInfoResolver.of(refData)); }
/** * Parses from the CSV row. * * @param row the CSV row * @param info the trade info * @param resolver the resolver used to parse additional information * @return the parsed trade */ static TermDepositTrade parse(CsvRow row, TradeInfo info, TradeCsvInfoResolver resolver) { TermDepositTrade trade = parseRow(row, info, resolver); return resolver.completeTrade(row, trade); }
public void test_multiple_series_multiple_files() { Map<ObservableId, LocalDateDoubleTimeSeries> ts = FixingSeriesCsvLoader.load( FIXING_SERIES_1, FIXING_SERIES_2); assertLibor3m6mSeries(ts); }
/** * Obtains an instance that uses the standard set of reference data. * * @return the loader */ public static SensitivityCsvWriter standard() { return new SensitivityCsvWriter(SensitivityCsvInfoSupplier.standard()); }
/** * Obtains an instance that uses the specified set of reference data. * * @param refData the reference data * @return the loader */ public static TradeCsvLoader of(ReferenceData refData) { return new TradeCsvLoader(TradeCsvInfoResolver.of(refData)); }
/** * Obtains an instance that uses the specified set of reference data. * * @param refData the reference data * @return the loader */ public static SensitivityCsvLoader of(ReferenceData refData) { return new SensitivityCsvLoader(SensitivityCsvInfoResolver.of(refData)); }
/** * Parses the data from a CSV row. * * @param row the CSV row object * @param info the trade info object * @param resolver the resolver used to parse additional information. This is not currently used in this method. * @return the parsed trade, as an instance of {@link FxSingleTrade} */ static FxSwapTrade parse(CsvRow row, TradeInfo info, TradeCsvInfoResolver resolver) { FxSwapTrade trade = parseRow(row, info); return resolver.completeTrade(row, trade); }
/** * Parses the data from a CSV row. * * @param row the CSV row object * @param info the trade info object * @param resolver the resolver used to parse additional information. This is not currently used in this method. * @return the parsed trade, as an instance of {@link FxSingleTrade} */ static FxSingleTrade parse(CsvRow row, TradeInfo info, TradeCsvInfoResolver resolver) { FxSingleTrade trade = parseRow(row, info); return resolver.completeTrade(row, trade); }
/** * Parses from the CSV row. * * @param row the CSV row * @param info the trade info * @param resolver the resolver used to parse additional information * @return the parsed trade */ static FraTrade parse(CsvRow row, TradeInfo info, TradeCsvInfoResolver resolver) { FraTrade trade = parseRow(row, info, resolver); return resolver.completeTrade(row, trade); }
/** * Obtains an instance that uses the standard set of reference data. * * @return the loader */ public static TradeCsvLoader standard() { return new TradeCsvLoader(TradeCsvInfoResolver.standard()); }
/** * Obtains an instance that uses the standard set of reference data. * * @return the loader */ public static PositionCsvLoader standard() { return new PositionCsvLoader(PositionCsvInfoResolver.standard()); }
/** * Parses one or more CSV format trade files. * <p> * CSV files sometimes contain a Unicode Byte Order Mark. * Callers are responsible for handling this, such as by using {@link UnicodeBom}. * * @param charSources the CSV character sources * @return the loaded trades, all errors are captured in the result */ public ValueWithFailures<List<Trade>> parse(Collection<CharSource> charSources) { return parse(charSources, Trade.class); }
/** * Obtains an instance that uses the specified set of reference data. * * @param refData the reference data * @return the loader */ public static SensitivityCsvInfoResolver of(ReferenceData refData) { return StandardCsvInfoImpl.of(refData); }
/** * Obtains an instance from typed strings where applicable. * * @param curveDate the curve date * @param curveName the curve name * @return the curve key */ static LoadedCurveKey of(LocalDate curveDate, CurveName curveName) { return new LoadedCurveKey(curveDate, curveName); }
/** * Obtains an instance that uses the specified resolver for additional information. * * @param resolver the resolver used to parse additional information * @return the loader */ public static PositionCsvLoader of(PositionCsvInfoResolver resolver) { return new PositionCsvLoader(resolver); }
/** * Obtains an instance. * * @param date the date of the node * @param value the value of the node * @param label the label of the node * @return the curve node */ static LoadedCurveNode of(LocalDate date, double value, String label) { return new LoadedCurveNode(date, value, label); }
/** * Obtains an instance that uses the specified resolver for additional information. * * @param resolver the resolver used to parse additional information * @return the loader */ public static SensitivityCsvLoader of(SensitivityCsvInfoResolver resolver) { return new SensitivityCsvLoader(resolver); }
/** * Obtains an instance that uses the specified set of reference data. * * @param refData the reference data * @return the loader */ public static TradeCsvInfoResolver of(ReferenceData refData) { return StandardCsvInfoImpl.of(refData); }
/** * Obtains an instance that uses the specified set of reference data. * * @param refData the reference data * @return the loader */ public static PositionCsvInfoResolver of(ReferenceData refData) { return StandardCsvInfoImpl.of(refData); }