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

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

?? currency.java

?? linux下編程用 編譯軟件
?? 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色| 亚洲欧美综合在线精品| 久久先锋资源网| 777奇米四色成人影色区| 99re免费视频精品全部| 国产一区二区三区四区五区入口| 亚洲在线免费播放| 自拍视频在线观看一区二区| 久久久午夜精品理论片中文字幕| 88在线观看91蜜桃国自产| 91亚洲精华国产精华精华液| 国产精品一区二区久久精品爱涩| 奇米精品一区二区三区四区| 亚洲综合成人在线| 亚洲精品亚洲人成人网| 国产精品色眯眯| 国产欧美精品一区二区色综合| 日韩欧美一级二级三级久久久| 欧美日韩国产区一| 欧美性三三影院| 色婷婷激情久久| 91美女精品福利| 99精品久久久久久| www.日韩在线| 99精品国产99久久久久久白柏| 欧美人狂配大交3d怪物一区| 91丨porny丨中文| 99麻豆久久久国产精品免费| 东方aⅴ免费观看久久av| 国产乱一区二区| 国产精品 欧美精品| 国产成人在线观看免费网站| 国产精品一区二区你懂的| 国产精品一区二区男女羞羞无遮挡| 国产麻豆成人精品| 国产一区二区三区在线观看精品| 国产毛片精品国产一区二区三区| 国产一区二区在线观看免费 | 1000部国产精品成人观看| 中文字幕乱码亚洲精品一区| 国产精品久久久久9999吃药| 亚洲天堂av一区| 亚洲成人先锋电影| 蜜臀av一区二区在线观看| 激情综合色丁香一区二区| 国产黄色91视频| 91麻豆国产自产在线观看| 色激情天天射综合网| 在线视频国内一区二区| 欧美精品第1页| 26uuu色噜噜精品一区| 国产精品美女久久久久aⅴ| 亚洲三级在线播放| 亚洲第一福利视频在线| 精品在线视频一区| eeuss鲁片一区二区三区 | 欧美日韩亚洲综合一区二区三区| 欧美人体做爰大胆视频| 久久无码av三级| √…a在线天堂一区| 亚洲高清视频在线| 久草在线在线精品观看| 成人动漫一区二区在线| 欧美午夜电影在线播放| 精品福利一二区| 国产精品久久久久久久岛一牛影视| 一区二区三区91| 九一九一国产精品| www.视频一区| 日韩欧美色综合| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 亚洲黄色免费电影| 精品一区二区在线免费观看| 波多野结衣精品在线| 欧美日韩mp4| 国产精品久久久久一区二区三区 | 国产日韩欧美不卡| 亚洲国产日韩在线一区模特| 久久精品噜噜噜成人av农村| 99国产精品久久久久久久久久久| 欧美日本一区二区三区| 国产精品午夜春色av| 三级不卡在线观看| 国产毛片一区二区| 欧美视频一区在线观看| 欧美国产日韩亚洲一区| 日本91福利区| 91在线观看美女| 久久亚洲综合色| 性做久久久久久免费观看| 不卡区在线中文字幕| 欧美大片日本大片免费观看| 亚洲精品国产无套在线观| 国产精品资源在线| 制服丝袜日韩国产| 亚洲美女免费在线| 国产精品一区专区| 欧美一区二区高清| 亚洲成人免费在线| 一本大道久久a久久综合| 国产亚洲精品精华液| 色综合天天综合色综合av| 久久蜜臀中文字幕| 日本v片在线高清不卡在线观看| 91麻豆精东视频| 国产精品高潮久久久久无| 国产一区二区导航在线播放| 欧美一区二区三区小说| 亚洲自拍欧美精品| 色综合久久久久久久久| 国产精品国产三级国产普通话蜜臀| 国内精品嫩模私拍在线| 欧美一区二区三区男人的天堂| 亚洲欧美日韩在线播放| 成人免费观看av| 久久精品夜色噜噜亚洲a∨| 日本 国产 欧美色综合| 欧美精品丝袜中出| 亚洲一区二区三区爽爽爽爽爽| 99这里都是精品| 国产精品美女一区二区三区| 国产老妇另类xxxxx| 久久久久久久久岛国免费| 精品午夜一区二区三区在线观看| 777色狠狠一区二区三区| 日韩成人dvd| 日韩视频永久免费| 久久99精品久久久久| 精品国产青草久久久久福利| 久热成人在线视频| 亚洲精品在线一区二区| 激情综合网激情| 国产人成亚洲第一网站在线播放| 国产一区二区三区| 国产欧美日韩不卡| 99视频在线观看一区三区| 欧美视频三区在线播放| 午夜私人影院久久久久| 91精品国产欧美一区二区18 | 亚洲高清免费在线| 69p69国产精品| 美脚の诱脚舐め脚责91| 久久人人超碰精品| 成人18精品视频| 一区二区三区蜜桃| 精品视频1区2区3区| 亚洲第一搞黄网站| 欧美tk—视频vk| 成人视屏免费看| 一级做a爱片久久| 日韩一级黄色片| 捆绑变态av一区二区三区| 国产色综合久久| 色拍拍在线精品视频8848| 爽爽淫人综合网网站| www国产精品av| 91视频观看免费| 日本一区中文字幕| 国产欧美日韩一区二区三区在线观看| 99re视频这里只有精品| 午夜精品久久久久久久蜜桃app| 欧美一级黄色片| 成人国产精品免费观看动漫| 亚洲一区二区视频| 久久夜色精品国产噜噜av | 色成人在线视频| 久久精品国产秦先生| 国产精品久久久久国产精品日日 | 欧美在线色视频| 麻豆精品久久精品色综合| 国产精品久久久久aaaa| 欧美一区二区在线视频| 粉嫩aⅴ一区二区三区四区五区| 亚洲伊人伊色伊影伊综合网| 欧美成人一区二区三区片免费| 波多野结衣一区二区三区| 亚洲18女电影在线观看| 国产精品美女www爽爽爽| 欧美一级免费大片| bt7086福利一区国产| 免费av网站大全久久| 亚洲精选免费视频| 国产婷婷色一区二区三区四区 | 91久久免费观看| 韩国v欧美v日本v亚洲v| 亚洲一区二区三区四区的 | 老司机精品视频导航| 日韩成人精品在线| 精品成人一区二区三区| 91国产视频在线观看| 国产精品亚洲第一区在线暖暖韩国| 一区二区三区日韩| 国产精品国产馆在线真实露脸 | 91麻豆精品国产|