亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? currency.java

?? gcc的組建
?? JAVA
字號:
/* Currency.java -- Representation of a currency   Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version. GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.util;import java.io.ObjectStreamException;import java.io.Serializable;import java.text.NumberFormat;/** * Representation of a currency for a particular locale.  Each currency * is identified by its ISO 4217 code, and only one instance of this * class exists per currency.  As a result, instances are created * via the <code>getInstance()</code> methods rather than by using * a constructor. * * @see java.util.Locale * @author Guilhem Lavaux  (guilhem.lavaux@free.fr) * @author Dalibor Topic (robilad@kaffe.org) * @author Bryce McKinlay (mckinlay@redhat.com) * @author Andrew John Hughes (gnu_andrew@member.fsf.org) * @since 1.4 */public final class Currency   implements Serializable{  /**   * For compatability with Sun's JDK   */  static final long serialVersionUID = -158308464356906721L;  /**   * The locale associated with this currency.   *   * @see #Currency(java.util.Locale)   * @see #getInstance(java.util.Locale)   * @see #getSymbol(java.util.Locale)   * @serial ignored.   */  private transient Locale locale;  /**   * The resource bundle which maps the currency to   * a ISO 4217 currency code.   *   * @see #getCurrencyCode()   * @serial ignored.   */  private transient ResourceBundle res;  /**   * The ISO 4217 currency code associated with this   * particular instance.   *   * @see #getCurrencyCode()   * @serial the ISO 4217 currency code   */  private String currencyCode;  /**   * A cache of <code>Currency</code> instances to   * ensure the singleton nature of this class.  The key   * is the locale of the currency.   *   * @see #getInstance(java.util.Locale)   * @see #readResolve()   * @serial ignored.   */  private static transient Map cache;  /**   * Instantiates the cache.   */  static  {    cache = new HashMap();  }  /**   * Default constructor for deserialization   */  private Currency ()  {  }  /**   * Constructor to create a <code>Currency</code> object   * for a particular <code>Locale</code>.   * All components of the given locale, other than the   * country code, are ignored.  The results of calling this   * method may vary over time, as the currency associated with   * a particular country changes.  For countries without   * a given currency (e.g. Antarctica), the result is null.    *   * @param loc the locale for the new currency.   */  private Currency (Locale loc)  {    this.locale = loc;    this.res = ResourceBundle.getBundle ("gnu.java.locale.LocaleInformation",       locale, ClassLoader.getSystemClassLoader());    /* Retrieve the ISO4217 currency code */    try      {	currencyCode = res.getString ("intlCurrencySymbol");      }    catch (Exception _)      {	currencyCode = null;      }  }  /**   * Returns the ISO4217 currency code of this currency.   *   * @return a <code>String</code> containing currency code.   */  public String getCurrencyCode ()  {    return currencyCode;  }  /**   * Returns the number of digits which occur after the decimal point   * for this particular currency.  For example, currencies such   * as the U.S. dollar, the Euro and the Great British pound have two   * digits following the decimal point to indicate the value which exists   * in the associated lower-valued coinage (cents in the case of the first   * two, pennies in the latter).  Some currencies such as the Japanese   * Yen have no digits after the decimal point.  In the case of pseudo   * currencies, such as IMF Special Drawing Rights, -1 is returned.   *   * @return the number of digits after the decimal separator for this currency.   */     public int getDefaultFractionDigits ()  {    NumberFormat currency = NumberFormat.getCurrencyInstance (locale);        return currency.getMaximumFractionDigits();  }      /**   * Builds a new currency instance for this locale.   * All components of the given locale, other than the   * country code, are ignored.  The results of calling this   * method may vary over time, as the currency associated with   * a particular country changes.  For countries without   * a given currency (e.g. Antarctica), the result is null.    *   * @param locale a <code>Locale</code> instance.   * @return a new <code>Currency</code> instance.   * @throws NullPointerException if the locale or its   *         country code is null.   * @throws IllegalArgumentException if the country of   *         the given locale is not a supported ISO3166 code.   */   public static Currency getInstance (Locale locale)  {    /**     * The new instance must be the only available instance     * for the currency it supports.  We ensure this happens,     * while maintaining a suitable performance level, by     * creating the appropriate object on the first call to     * this method, and returning the cached instance on     * later calls.     */    Currency newCurrency;    /* Attempt to get the currency from the cache */    newCurrency = (Currency) cache.get(locale);    if (newCurrency == null)      {        /* Create the currency for this locale */        newCurrency = new Currency (locale);        /* Cache it */        cache.put(locale, newCurrency);      }    /* Return the instance */    return newCurrency;  }  /**   * Builds the currency corresponding to the specified currency code.   *   * @param currencyCode a string representing a currency code.   * @return a new <code>Currency</code> instance.   * @throws NullPointerException if currencyCode is null.   * @throws IllegalArgumentException if the supplied currency code   *         is not a supported ISO 4217 code.   */  public static Currency getInstance (String currencyCode)  {    Locale[] allLocales = Locale.getAvailableLocales ();        for (int i = 0;i < allLocales.length; i++)      {	Currency testCurrency = getInstance (allLocales[i]);		if (testCurrency.getCurrencyCode() != null &&	    testCurrency.getCurrencyCode().equals(currencyCode))	  return testCurrency;      }    /*      * If we get this far, the code is not supported by any of     * our locales.     */    throw new IllegalArgumentException("The currency code, " + currencyCode +                                       ", is not supported.");  }  /**   * This method returns the symbol which precedes or follows a   * value in this particular currency.  In cases where there is no   * such symbol for the currency, the ISO 4217 currency   * code is returned.   *   * @return the currency symbol, or the ISO 4217 currency code if   *         one doesn't exist.   */  public String getSymbol()  {    try      {        /* What does this return if there is no mapping? */	return res.getString ("currencySymbol");      }    catch (Exception _)      {	return null;      }  }  /**   * <p>   * This method returns the symbol which precedes or follows a   * value in this particular currency.  The returned value is   * the symbol used to denote the currency in the specified locale.   * </p>   * <p>   * For example, a supplied locale may specify a different symbol   * for the currency, due to conflicts with its own currency.   * This would be the case with the American currency, the dollar.   * Locales that also use a dollar-based currency (e.g. Canada, Australia)   * need to differentiate the American dollar using 'US$' rather than '$'.   * So, supplying one of these locales to <code>getSymbol()</code> would   * return this value, rather than the standard '$'.   * </p>   * <p>   * In cases where there is no such symbol for a particular currency,   * the ISO 4217 currency code is returned.   * </p>   *   * @param locale the locale to express the symbol in.   * @return the currency symbol, or the ISO 4217 currency code if   *         one doesn't exist.   * @throws NullPointerException if the locale is null.   */  public String getSymbol(Locale locale)  {    // TODO. The behaviour is unclear if locale != this.locale.    // First we need to implement fully LocaleInformation*.java    /*      * FIXME: My reading of how this method works has this implementation     * as wrong.  It should return a value relating to how the specified     * locale handles the symbol for this currency.  This implementation     * seems to just do a variation of getInstance(locale).     */    try      {	ResourceBundle localeResource = 	  ResourceBundle.getBundle ("gnu.java.locale.LocaleInformation", 				    locale, Currency.class.getClassLoader());	if (localeResource.equals(res))	  return localeResource.getString ("currencySymbol");	else	  return localeResource.getString ("intlCurrencySymbol");      }    catch (Exception e1)      {	try	  {	    return res.getString ("intlCurrencySymbol");	  }	catch (Exception e2)	  {	    return null;	  }      }  }  /**   * Returns the international ISO4217 currency code of this currency.   *   * @return a <code>String</code> containing the ISO4217 currency code.   */  public String toString()  {    return getCurrencyCode();  }  /**   * Resolves the deserialized object to the singleton instance for its   * particular currency.  The currency code of the deserialized instance   * is used to return the correct instance.   *   * @return the singleton instance for the currency specified by the   *         currency code of the deserialized object.  This replaces   *         the deserialized object as the returned object from   *         deserialization.   * @throws ObjectStreamException if a problem occurs with deserializing   *         the object.   */  private Object readResolve()    throws ObjectStreamException  {    return getInstance(currencyCode);  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av在线观| 日韩一级片网站| 91网站在线观看视频| 国产高清一区日本| 国产一区二区三区在线看麻豆| 日韩成人午夜精品| 久久精品国产999大香线蕉| 青草av.久久免费一区| 久久精品国产澳门| 国产精品亚洲午夜一区二区三区| 精品系列免费在线观看| 国产一区二区三区免费看| 国产在线乱码一区二区三区| 国产一区二区三区四区在线观看| 国产精品一品二品| 成人免费视频播放| 91麻豆国产香蕉久久精品| 在线观看日韩av先锋影音电影院| 色婷婷综合久久久中文字幕| 欧美亚洲国产一区二区三区va| 欧美日韩亚洲综合| 日韩免费观看高清完整版在线观看| 日韩免费观看高清完整版在线观看| 337p粉嫩大胆噜噜噜噜噜91av| 国产亚洲欧美一区在线观看| 国产欧美视频在线观看| ●精品国产综合乱码久久久久| 亚洲精品国产a| 日韩综合小视频| 精品一区二区免费视频| 成人激情小说网站| 91国产免费观看| 日韩一区二区在线观看视频| 久久免费视频色| 一区二区三区四区在线播放| 人人精品人人爱| 成人一区在线看| 欧美亚洲图片小说| 精品国产乱码久久久久久久久 | 欧美videossexotv100| 精品99久久久久久| 综合自拍亚洲综合图不卡区| 午夜精品一区二区三区电影天堂| 久久99国产精品久久99| 99这里只有久久精品视频| 欧美乱熟臀69xxxxxx| 久久久夜色精品亚洲| 亚洲一二三四区不卡| 狠狠久久亚洲欧美| 在线看国产日韩| 精品国产电影一区二区| 亚洲精品伦理在线| 久久91精品久久久久久秒播| 91在线看国产| 久久午夜国产精品| 亚洲线精品一区二区三区八戒| 国内外成人在线| 在线一区二区三区做爰视频网站| 精品国精品自拍自在线| 一区二区三区不卡在线观看| 久久97超碰色| 欧美色网站导航| 亚洲国产激情av| 久久精品国产99久久6| 欧美撒尿777hd撒尿| 国产欧美精品在线观看| 日韩av在线发布| 色综合久久天天综合网| 久久蜜桃av一区二区天堂| 亚洲mv在线观看| 99久久er热在这里只有精品15| 欧美va亚洲va香蕉在线| 午夜不卡在线视频| 99精品黄色片免费大全| 国产欧美综合在线观看第十页| 日韩精品久久久久久| 日本伦理一区二区| 中文字幕国产一区| 国产在线视频一区二区| 欧美一级久久久久久久大片| 亚洲资源中文字幕| 91免费看片在线观看| 欧美激情自拍偷拍| 国产精品911| 日韩免费福利电影在线观看| 一区二区三区美女| 91丝袜高跟美女视频| 国产精品人人做人人爽人人添| 狠狠色狠狠色合久久伊人| 91精品福利在线一区二区三区| 亚洲午夜久久久久中文字幕久| 91香蕉视频黄| 国产精品国产三级国产aⅴ无密码| 国产专区综合网| 精品少妇一区二区三区免费观看| 日产国产高清一区二区三区| 中文字幕综合网| www.在线成人| 国产嫩草影院久久久久| 国产成人在线视频免费播放| 欧美精品一区二区久久婷婷| 精品一区二区三区免费| 欧美精品一区二区三| 国产精华液一区二区三区| 精品久久人人做人人爽| 日韩不卡一区二区三区| 日韩一区二区三区免费看 | 成人白浆超碰人人人人| 久久精品人人做| 国产成人精品一区二区三区网站观看 | 91蝌蚪porny成人天涯| 亚洲乱码日产精品bd| 色悠悠久久综合| 亚洲一区在线观看视频| 欧美日本免费一区二区三区| 日韩国产在线一| 日韩视频123| 国产一区三区三区| 中文字幕国产一区| 色偷偷久久一区二区三区| 一区二区久久久久久| 欧美乱熟臀69xxxxxx| 久久成人免费网| 久久麻豆一区二区| 成人av在线资源网站| 亚洲线精品一区二区三区 | 亚洲综合丝袜美腿| 日韩欧美一区二区视频| 精品影院一区二区久久久| 国产欧美一区视频| 91免费国产在线| 日日夜夜精品视频免费| 久久精品在线观看| 91福利视频在线| 奇米四色…亚洲| 国产精品护士白丝一区av| 91成人在线免费观看| 免费人成网站在线观看欧美高清| 久久久777精品电影网影网| 91免费版在线| 美女一区二区三区在线观看| 亚洲国产精品t66y| 欧美精选在线播放| 国产精一品亚洲二区在线视频| 日韩毛片一二三区| 日韩欧美成人一区二区| 成人av在线资源| 日本中文字幕一区| 亚洲国产精品黑人久久久| 欧美四级电影在线观看| 久久电影网电视剧免费观看| 国产精品成人免费在线| 91精品国产一区二区三区| 国产福利一区二区| 亚洲成在线观看| 国产欧美一区二区精品性色超碰| 欧美色老头old∨ideo| 国产一区91精品张津瑜| 一级精品视频在线观看宜春院| 日韩一区二区三| 91久久精品网| 国产精品一区二区无线| 午夜婷婷国产麻豆精品| 亚洲国产精品成人综合| 日韩视频一区二区在线观看| 色欧美日韩亚洲| 国产精品456露脸| 天堂一区二区在线| 国产精品久久久久久久久果冻传媒| 制服.丝袜.亚洲.中文.综合| 成人99免费视频| 九一九一国产精品| 亚洲福利一区二区| 国产日韩三级在线| 日韩精品在线一区二区| 91福利精品视频| av中文字幕在线不卡| 国产在线精品一区二区不卡了 | 波波电影院一区二区三区| 国产原创一区二区三区| 天天影视网天天综合色在线播放| 中文字幕视频一区| 国产欧美日韩久久| 日韩午夜精品视频| 欧美午夜影院一区| 色哟哟欧美精品| 白白色亚洲国产精品| 国产一区欧美一区| 青青草成人在线观看| 丝袜a∨在线一区二区三区不卡 | 波多野结衣在线一区| 国产乱人伦偷精品视频不卡| 免费一区二区视频| 日韩精品亚洲专区| 午夜视频一区二区| 一级特黄大欧美久久久| 一区二区日韩av| 一区二区三区在线不卡| 亚洲制服丝袜在线| 亚洲精品视频在线观看免费|