From: <sco...@us...> - 2012-11-20 16:49:23
|
I wonder if the name isLegalTender(...) might make it a bit more self documenting. -- Scott Russell master Javist [tm] Software Developer IBM Software Group, Strategy email: Notes Internet 1475 Phoenixville Pike West Chester, PA, 19380 USA Phone: +1.610.383.4585 IM: ST=sco...@us... : AIM/GIM: DTownSMR ICU Project internal IBM ICU IBM Support Portal From: Travis Keep <roc...@go...> To: icu...@li..., Date: 11/19/2012 01:08 PM Subject: [icu-design] ICU4J API Proposal: Add isTender() method to CurrencyInfo (#9508) I would like to propose the following API for: ICU 51. Please provide feedback by: Tuesday, 2012-11-27 (Proposed ICU PMC review on 2012-11-28) Designated API reviewer: Mark Davis Ticket: http://bugs.icu-project.org/trac/ticket/9508 Currently one can fetch only the currencies used as tender using ICUCurrencyMetaInfo.currencyInfo(CurrencyFilter.now()). Using ICUCurrencyMetaInfo.currencyInfo(CurrencyFilter.all()) gets all currencies, and there is not a trivial way to determine whether or not a particular currency is used as tender. I propose adding isTender() to the CurrencyMetaInfo.CurrencyInfo class for ICU4J 51 as below - /** * Determine whether or not a Currency is used as tender right now. */ public boolean isTender() { } /** * Determine whether or not a Currency was ever used as tender since a given date */ public boolean isTender(java.util.Date fromDate) { } /** * Determine whether or not a Currency was ever used as tender within some date range. */ public boolean isTender(java.util.Date fromDate, java.util.Date toDate) { } Thanks, Travis -- 100 / 9900 = .01010101010101010101... 100 / 9801 = .01020304050607080910... 100 / 9899 = .01010203050813213455... (Fibonacci) ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ icu-design mailing list icu...@li... To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-design |