@@ -3122,44 +3122,58 @@ conversion, e.g.:
31223122-------------------------------------------------------------------
31233123MonetaryAmount inCHF =...;
31243124CurrencyConversion conv = MonetaryConversions.getConversion(ConversionQueryBuilder.create()
3125- .setProviders("CS", "EZB", "IMF")
3126- .setTermCurrency("EUR")
3127- .set(MonetaryAmount.class, MonetaryAmount.class, inCHF )
3128- .setTimestamp(ts)
3129- .setRateType(RateType.HISTORIC)
3130- .set(StockExchange.NYSE) // custom type
3131- .set("contractId", "AA-1234.2")
3132- .build());
3125+ .setProviders("CS", "EZB", "IMF")
3126+ .setTermCurrency("EUR")
3127+ .set(MonetaryAmount.class, inCHF, MonetaryAmount.class)
3128+ .setTimestamp(ts)
3129+ .setRateType(RateType.HISTORIC)
3130+ .set(StockExchange.NYSE) // custom type
3131+ .set("contractId", "AA-1234.2")
3132+ .build());
31333133MonetaryAmount inEUR = inCHF.with(conv);
31343134-------------------------------------------------------------------
31353135
31363136:numbered!:
31373137
31383138== APPENDIX
3139+ [[Bibliography]]
31393140=== Bibliography
3140- [Bibliography]
3141- -------------------------------------------------------------------
3142- [[Bitcoin]] http://bitcoin.org/en/
3143- [[ICU]] http://site.icu-project.org/
3144- [[ISO-4217]] http://www.iso.org/iso/home/standards/currency_codes.htm
3145- [[ISO-20022]] www.iso20022.org
3146- [[JodaMoney]] http://www.joda.org/joda-money/
3147- [[java.net]] http://java.net/projects/javamoney/
3148- [[JSR354]] http://jcp.org/en/jsr/detail?id=354
3149- [[source]] Public Source Code Repository on GitHub: http://github.com/JavaMoney,
3150- Branch/Tag matching updated PDR is {version}
3151- -------------------------------------------------------------------
3141+
3142+ [[[Bitcoin]]]
3143+ http://bitcoin.org/en/
3144+
3145+ [[[ICU]]]
3146+ http://site.icu-project.org/
3147+
3148+ [[[ISO-4217]]]
3149+ http://www.iso.org/iso/home/standards/currency_codes.htm
3150+
3151+ [[[ISO-20022]]]
3152+ http://www.iso20022.org
3153+
3154+ [[[JodaMoney]]]
3155+ http://www.joda.org/joda-money/
3156+
3157+ [[[java.net]]]
3158+ http://java.net/projects/javamoney/
3159+
3160+ [[[JSR354]]]
3161+ http://jcp.org/en/jsr/detail?id=354
3162+
3163+ [[[source]]]
3164+ Public Source Code Repository on GitHub: http://github.com/JavaMoney,
3165+ Branch/Tag matching updated PDR is {version}
3166+
31523167
31533168
31543169=== Links
31553170* http://jcp.org/en/jsr/detail?id=35[JSR 354 on jcp.org]
3156- * http://java.net/projects/javamoney/[JavaMoney on Java.net]
3157- ** https://github.com/JavaMoney[JSR 354 API]
3158- ** https://github.com/JavaMoney/jsr354-ro[Moneta RI]
3159- * http://www.javapractices.com/topic/TopicAction.do?Id=13[Java Practices -> Representing Money]
3171+ * http://java.net/projects/javamoney/[JavaMoney Project on Java.net]
3172+ ** https://github.com/JavaMoney[JSR 354 API GitHub Repository ]
3173+ ** https://github.com/JavaMoney/jsr354-ro[Moneta RI GitHub Repository ]
3174+ * http://www.javapractices.com/topic/TopicAction.do?Id=13[Java Practices about Representing Money]
31603175* http://blog.eisele.net/2011/08/working-with-money-in-java.html[Working with Money in Java]
31613176* Java currency by Roedy Green, Canadian Mind Products
3162-
31633177* http://www.eclipse.org/uomo/[UOMo Business], based on ICU4J and concepts by JScience Economics]
31643178* http://moneydance.com/dev/apidoc/[MoneyDance API]
31653179* http://javamoney.org[JavaMoney] is the Apache 2.0 licensed OSS project that evolved from JSR 354 development. It provides concrete implementations for currency conversion and mapping, advanced formatting, historic data access, regions and a set of financial calculations and formulas.
0 commit comments