harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r546878 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java
Date Wed, 13 Jun 2007 13:56:06 GMT
Author: tellison
Date: Wed Jun 13 06:56:05 2007
New Revision: 546878

URL: http://svn.apache.org/viewvc?view=rev&rev=546878
Log:
Apply patch HARMONY-4145 ([classlib] [luni] Updated Javadoc for java.util.Currency)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java?view=diff&rev=546878&r1=546877&r2=546878
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Currency.java Wed
Jun 13 06:56:05 2007
@@ -45,7 +45,7 @@
     }
 
     /**
-     * Answers the currency instance for this currency code.
+     * Returns the Currency instance for this currency code.
      * <p>
      * 
      * @param currencyCode
@@ -81,7 +81,7 @@
     }
 
     /***************************************************************************
-     * Answers the currency instance for this locale.
+     * Returns the Currency instance for the given locale.
      * 
      * @param locale
      *            java.util.Locale
@@ -115,28 +115,27 @@
     }
 
     /**
-     * Answers this currency's ISO 4217 currency code.
+     * Returns 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.
+     * Returns the currency symbol for the default locale.
+     * 
+     * Equivalent to <code>getSymbol(Locale.getDefault())</code>
      * 
-     * @return the symbol for this currency in the default locale
+     * @return the currency symbol for the default locale.
      */
     public String getSymbol() {
         return getSymbol(Locale.getDefault());
     }
 
     /**
-     * Return the symbol for this currency in the given locale.
+     * Returns the currency symbol for the given locale.
      * <p>
      * 
      * If the locale doesn't have any countries (e.g.
@@ -154,9 +153,9 @@
      * <p>
      * 
      * @param locale
-     *            java.lang.String locale
-     * @return symbol java.lang.String the representation of this Currency's
-     *         symbol in this locale
+     *            the locale
+     * @return symbol the representation of this Currency's symbol in this
+     *         locale
      */
     public String getSymbol(Locale locale) {
         if (locale.getCountry().equals("")) { //$NON-NLS-1$
@@ -194,10 +193,9 @@
     }
 
     /**
-     * Answers the default number of fraction digits for this currency. For
-     * instance, the default number of fraction digits for the US dollar is 2.
-     * For the Japanese Yen the number is 0. In the case of pseudo-currencies,
-     * such as IMF Special Drawing Rights, -1 is returned.
+     * Returns the default number of fraction digits for this currency (i.e. the
+     * number of digits after the decimal point). For pseudo currencies this
+     * method returns -1.
      * 
      * @return the default number of fraction digits for this currency
      */
@@ -206,7 +204,7 @@
     }
 
     /**
-     * Answers this currency's ISO 4217 currency code.
+     * Returns this currency's ISO 4217 currency code.
      * 
      * @return this currency's ISO 4217 currency code
      */



Mime
View raw message