Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 84921 invoked from network); 24 Jul 2006 06:37:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2006 06:37:29 -0000 Received: (qmail 91116 invoked by uid 500); 24 Jul 2006 06:37:29 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 91025 invoked by uid 500); 24 Jul 2006 06:37:29 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 91014 invoked by uid 99); 24 Jul 2006 06:37:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jul 2006 23:37:29 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jul 2006 23:37:29 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id DB0BA1A981A; Sun, 23 Jul 2006 23:37:08 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r424928 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java Date: Mon, 24 Jul 2006 06:37:08 -0000 To: harmony-commits@incubator.apache.org From: pyang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060724063708.DB0BA1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: pyang Date: Sun Jul 23 23:37:08 2006 New Revision: 424928 URL: http://svn.apache.org/viewvc?rev=424928&view=rev Log: Fix for harmony-958 ([classlib][luni] Add javadoc for java.util.Currency) Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java?rev=424928&r1=424927&r2=424928&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java Sun Jul 23 23:37:08 2006 @@ -108,10 +108,23 @@ return getInstance(currencyCode); } + /** + * Answers this currency's ISO 4217 currency code. + * + * @return this currency's ISO 4217 currency code + */ public String getCurrencyCode() { return currencyCode; } - + + /** + * Answers the symbol for this currency in the default locale. For instance, + * if the default locale is the US, the symbol of the US dollar is "$". For + * other locales it may be "US$". If no symbol can be determined, the ISO + * 4217 currency code of the US dollar is returned. + * + * @return the symbol for this currency in the default locale + */ public String getSymbol() { return getSymbol(Locale.getDefault()); }