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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? currency.java

?? gcc的組建
?? JAVA
字號(hào):
/* 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 gnu.java.locale.LocaleHelper;import java.io.IOException;import java.io.ObjectStreamException;import java.io.Serializable;/** * 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 set of properties which map a currency to   * the currency information such as the ISO 4217   * currency code and the number of decimal points.   *   * @see #getCurrencyCode()   * @serial ignored.   */  private static transient Properties properties;  /**   * The ISO 4217 currency code associated with this   * particular instance.   *   * @see #getCurrencyCode()   * @serial the ISO 4217 currency code   */  private String currencyCode;  /**   * The number of fraction digits associated with this   * particular instance.   *   * @see #getDefaultFractionDigits()   * @serial the number of fraction digits   */  private transient int fractionDigits;    /**   * A cached map of country codes   * instances to international currency code   * <code>String</code>s.  Seperating this   * from the <code>Currency</code> instances   * ensures we have a common lookup between   * the two <code>getInstance()</code> methods.   *   * @see #getInstance(java.util.Locale)   * @serial ignored.   */  private static transient Map countryMap;  /**   * A cache of <code>Currency</code> instances to   * ensure the singleton nature of this class.  The key   * is the international currency code.   *   * @see #getInstance(java.util.Locale)   * @see #getInstance(java.lang.String)    * @see #readResolve()   * @serial ignored.   */  private static transient Map cache;  /**   * Instantiates the cache and reads in the properties.   */  static  {    /* Create a hash map for the locale mappings */    countryMap = new HashMap();    /* Create a hash map for the cache */    cache = new HashMap();    /* Create the properties object */    properties = new Properties();    /* Try and load the properties from our iso4217.properties resource */    try       {        properties.load(Currency.class.getResourceAsStream("iso4217.properties"));      }    catch (IOException exception)      {        System.out.println("Failed to load currency resource: " + exception);      }  }  /**   * 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, or null if   *        there is no country code specified or a currency   *        for this country.   */  private Currency(Locale loc)  {    String countryCode;    String currencyKey;    String fractionDigitsKey;    int commaPosition;    /* Retrieve the country code from the locale */    countryCode = loc.getCountry();    /* If there is no country code, return */    if (countryCode.equals(""))      {        throw new	  IllegalArgumentException("Invalid (empty) country code for locale:"			  	   + loc);      }    /* Construct the key for the currency */    currencyKey = countryCode + ".currency";    /* Construct the key for the fraction digits */    fractionDigitsKey = countryCode + ".fractionDigits";    /* Retrieve the currency */    currencyCode = properties.getProperty(currencyKey);    /* Return if the currency code is null */    if (currencyCode == null)      {        return;      }    /* Split off the first currency code (we only use the first for now) */    commaPosition = currencyCode.indexOf(",");    if (commaPosition != -1)      {        currencyCode = currencyCode.substring(0, commaPosition);      }    /* Retrieve the fraction digits */    fractionDigits = Integer.parseInt(properties.getProperty(fractionDigitsKey));  }  /**   * Constructor for the "XXX" special case.  This allows   * a Currency to be constructed from an assumed good   * currency code.   *   * @param code the code to use.   */    private Currency(String code)  {    currencyCode = code;    fractionDigits = -1; /* Pseudo currency */  }  /**   * 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()  {    return fractionDigits;  }      /**   * 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;    String country = locale.getCountry();    if (locale == null || country == null)      {	throw new	  NullPointerException("The locale or its country is null.");      }    /* Attempt to get the currency from the cache */    String code = (String) countryMap.get(country);    if (code == null)      {        /* Create the currency for this locale */        newCurrency = new Currency(locale);        /*          * If the currency code is null, then creation failed         * and we return null.         */	code = newCurrency.getCurrencyCode();        if (code == null)          {            return null;          }        else           {            /* Cache it */            countryMap.put(country, code);	    cache.put(code, newCurrency);          }      }    else      {	newCurrency = (Currency) cache.get(code);      }    /* 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;    /*      * Throw a null pointer exception explicitly if currencyCode is null.     * One is not thrown otherwise.  It results in an     * IllegalArgumentException.      */    if (currencyCode == null)      {        throw new NullPointerException("The supplied currency code is null.");      }    /* Nasty special case to allow an erroneous currency... blame Sun */    if (currencyCode.equals("XXX"))      return new Currency("XXX");    Currency newCurrency = (Currency) cache.get(currencyCode);    if (newCurrency == null)      {	/* Get all locales */	allLocales = Locale.getAvailableLocales();	/* Loop through each locale, looking for the code */	for (int i = 0;i < allLocales.length; i++)	  {	    try	      {		Currency testCurrency = getInstance (allLocales[i]);		if (testCurrency != null &&		    testCurrency.getCurrencyCode().equals(currencyCode))		  {		    return testCurrency;		  }	      }	    catch (IllegalArgumentException exception)	      {		/* Ignore locales without valid countries */	      }	  }	/* 	 * 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.");      }    else      {	return newCurrency;      }  }  /**   * This method returns the symbol which precedes or follows a   * value in this particular currency in the default locale.   * 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()  {    return getSymbol(Locale.getDefault());  }  /**   * <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)  {    return LocaleHelper.getLocalizedString(locale, currencyCode,					   "currenciesSymbol", false, true);  }  /**   * 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);  }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区av电影| 久久久.com| 欧美男同性恋视频网站| 色噜噜狠狠色综合中国| 色乱码一区二区三区88| 91久久线看在观草草青青 | 欧洲生活片亚洲生活在线观看| 成人小视频在线观看| 99久久精品国产一区二区三区| av不卡在线播放| 色婷婷精品大在线视频 | 精品999久久久| 久久天天做天天爱综合色| 久久久综合视频| 国产精品乱码人人做人人爱 | 亚洲婷婷在线视频| 亚洲男人电影天堂| 亚洲国产欧美日韩另类综合| 丝袜国产日韩另类美女| 青青草97国产精品免费观看| 狠狠色伊人亚洲综合成人| 国产91精品精华液一区二区三区| 99久久免费国产| 欧美日韩中文一区| 欧美本精品男人aⅴ天堂| 国产夜色精品一区二区av| |精品福利一区二区三区| 一区二区三区在线高清| 日韩在线观看一区二区| 国产精品 欧美精品| 99精品国产99久久久久久白柏 | 国产午夜久久久久| 国产精品免费视频网站| 亚洲gay无套男同| 麻豆国产精品777777在线| 从欧美一区二区三区| 91高清视频在线| 日韩精品一区二区三区蜜臀 | 日韩国产精品久久| 国产又黄又大久久| 91丝袜美女网| 精品日韩一区二区三区| 亚洲精品久久7777| 久久99精品久久久| 91欧美激情一区二区三区成人| 欧美一区日韩一区| 中文字幕一区二区三区在线不卡 | 成人黄色大片在线观看| 91精品国产综合久久久蜜臀粉嫩 | 国产一区二区视频在线播放| 99久久精品国产网站| 欧美成人一区二区三区片免费| 亚洲色图制服诱惑| 激情综合色丁香一区二区| 色哟哟在线观看一区二区三区| 日韩一区二区电影在线| 亚洲色图另类专区| 狠狠色丁香久久婷婷综| 欧洲精品一区二区| 国产日本欧洲亚洲| 日本不卡视频一二三区| 在线视频欧美区| 国产精品久久久久影院亚瑟| 老司机免费视频一区二区三区| 在线免费观看日韩欧美| 久久久91精品国产一区二区三区| 午夜精品免费在线观看| eeuss国产一区二区三区| xfplay精品久久| 日韩高清在线电影| 91精彩视频在线| 国产精品福利一区二区三区| 国产麻豆精品theporn| 91精品综合久久久久久| 亚洲精品国产一区二区精华液 | 亚洲精品国产无天堂网2021| 国产v综合v亚洲欧| 日韩欧美区一区二| 午夜久久久久久久久久一区二区| 成人aa视频在线观看| 久久久久久久综合日本| 久久se精品一区精品二区| 在线成人午夜影院| 亚洲高清免费一级二级三级| 91老师片黄在线观看| 国产精品私房写真福利视频| 国产一区激情在线| 精品久久久久久久久久久久久久久| 亚洲高清免费视频| 色综合久久中文综合久久牛| 国产精品久久久久久久久免费桃花| 国产老女人精品毛片久久| 日韩精品一区二区三区在线播放| 青青青爽久久午夜综合久久午夜| 欧美日韩高清影院| 午夜精品久久久久久久久| 欧美色综合久久| 亚洲综合色噜噜狠狠| 在线亚洲一区观看| 亚洲国产精品视频| 欧美色精品天天在线观看视频| 亚洲五码中文字幕| 欧美日韩大陆在线| 日日夜夜精品视频天天综合网| 欧美日韩一级黄| 日韩精品电影在线观看| 日韩一卡二卡三卡| 国内精品不卡在线| 国产三级欧美三级日产三级99 | 99久久99久久精品免费看蜜桃| 国产精品久久福利| 日本高清不卡一区| 丝瓜av网站精品一区二区| 欧美精品99久久久**| 蜜臀av一区二区在线免费观看| 精品福利av导航| 国产jizzjizz一区二区| 最新日韩av在线| 欧美少妇xxx| 久久99精品久久久久久久久久久久| 久久久久久免费网| 97se亚洲国产综合自在线观| 亚洲综合色成人| 日韩欧美的一区| 国产成人免费视频一区| 亚洲精品国产精品乱码不99| 欧美日韩精品一区视频| 久久66热偷产精品| 亚洲欧洲日韩综合一区二区| 91精品办公室少妇高潮对白| 日韩激情一二三区| 欧美激情一区二区| 亚洲视频一区二区在线| 欧美精选在线播放| 国产成人精品亚洲午夜麻豆| 综合色天天鬼久久鬼色| 在线播放国产精品二区一二区四区| 麻豆成人91精品二区三区| 国产精品高潮呻吟| 91麻豆精品国产无毒不卡在线观看 | 久久久三级国产网站| 99久久精品一区| 日韩av一二三| 中文字幕亚洲成人| 3d成人h动漫网站入口| 成人涩涩免费视频| 日韩精品欧美精品| 中文字幕五月欧美| 日韩欧美在线1卡| 色综合久久精品| 国产一区二区在线视频| 亚洲综合色噜噜狠狠| 久久久777精品电影网影网 | 国产精品你懂的| 91精品国产91久久久久久最新毛片| 成人黄色在线看| 免费久久精品视频| 亚洲乱码中文字幕| www亚洲一区| 欧美福利电影网| 99精品视频一区| 国产一区二区中文字幕| 午夜精品久久久久影视| 日韩毛片高清在线播放| 欧美v国产在线一区二区三区| 日本韩国欧美在线| 高清不卡一区二区| 久久电影网电视剧免费观看| 亚洲一区二区三区四区在线免费观看 | 国产精品久99| 精品第一国产综合精品aⅴ| 欧洲国内综合视频| 北条麻妃国产九九精品视频| 久久精品国产一区二区三| 亚洲最新视频在线观看| 中文字幕免费一区| 久久综合九色欧美综合狠狠| 在线播放/欧美激情| 91成人免费在线| 91尤物视频在线观看| 国产91高潮流白浆在线麻豆| 捆绑紧缚一区二区三区视频| 舔着乳尖日韩一区| 亚洲一二三四区| 亚洲卡通动漫在线| 亚洲欧洲国产专区| 中文字幕乱码久久午夜不卡| 久久久久久久综合| 精品国产一区二区三区不卡| 日韩亚洲欧美中文三级| 欧美美女喷水视频| 欧美理论在线播放| 欧美精品一二三| 欧美高清一级片在线| 欧美天堂一区二区三区| 日本丶国产丶欧美色综合| 色天天综合久久久久综合片| 99精品桃花视频在线观看| 不卡的电视剧免费网站有什么| 国产精品系列在线观看|