/[classpath]/classpath/java/text/DecimalFormat.java
ViewVC logotype

Diff of /classpath/java/text/DecimalFormat.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by tromey, Sat Oct 25 00:16:24 2003 UTC revision 1.11 by mark, Sat Nov 15 21:45:27 2003 UTC
# Line 37  exception statement from your version. * Line 37  exception statement from your version. *
37    
38  package java.text;  package java.text;
39    
40    import java.util.Currency;
41  import java.util.Locale;  import java.util.Locale;
42  import java.util.MissingResourceException;  import java.util.MissingResourceException;
43  import java.util.ResourceBundle;  import java.util.ResourceBundle;
# Line 637  public class DecimalFormat extends Numbe Line 638  public class DecimalFormat extends Numbe
638      return dest;      return dest;
639    }    }
640    
641      /**
642       * Returns the currency corresponding to the currency symbol stored
643       * in the instance of <code>DecimalFormatSymbols</code> used by this
644       * <code>DecimalFormat</code>.
645       *
646       * @return A new instance of <code>Currency</code> if
647       * the currency code matches a known one, null otherwise.
648       */
649      public Currency getCurrency()
650      {
651        return symbols.getCurrency();
652      }
653    
654    public DecimalFormatSymbols getDecimalFormatSymbols ()    public DecimalFormatSymbols getDecimalFormatSymbols ()
655    {    {
656      return symbols;      return symbols;
# Line 856  public class DecimalFormat extends Numbe Line 870  public class DecimalFormat extends Numbe
870      return result;      return result;
871    }    }
872    
873      /**
874       * Sets the <code>Currency</code> on the
875       * <code>DecimalFormatSymbols</code> used, which also sets the
876       * currency symbols on those symbols.
877       */
878      public void setCurrency(Currency currency)
879      {
880        symbols.setCurrency(currency);
881      }
882    
883    public void setDecimalFormatSymbols (DecimalFormatSymbols newSymbols)    public void setDecimalFormatSymbols (DecimalFormatSymbols newSymbols)
884    {    {
885      symbols = newSymbols;      symbols = newSymbols;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26