harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
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 GMT
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());
 	}



Mime
View raw message