Java Code Examples for sun.util.resources.OpenListResourceBundle#containsKey()
The following examples show how to use
sun.util.resources.OpenListResourceBundle#containsKey() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LocaleResources.java From Bytecoder with Apache License 2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 2
Source File: LocaleResources.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public String getLocaleName(String key) { Object localeName = null; String cacheKey = LOCALE_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((localeName = data.get()) != null)) { if (localeName.equals(NULLOBJECT)) { localeName = null; } return (String) localeName; } OpenListResourceBundle olrb = localeData.getLocaleNames(locale); if (olrb.containsKey(key)) { localeName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, localeName, referenceQueue)); } return (String) localeName; }
Example 3
Source File: LocaleResources.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 4
Source File: LocaleResources.java From hottub with GNU General Public License v2.0 | 6 votes |
public String getLocaleName(String key) { Object localeName = null; String cacheKey = LOCALE_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((localeName = data.get()) != null)) { if (localeName.equals(NULLOBJECT)) { localeName = null; } return (String) localeName; } OpenListResourceBundle olrb = localeData.getLocaleNames(locale); if (olrb.containsKey(key)) { localeName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, localeName, referenceQueue)); } return (String) localeName; }
Example 5
Source File: LocaleResources.java From hottub with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 6
Source File: LocaleResources.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public String getLocaleName(String key) { Object localeName = null; String cacheKey = LOCALE_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((localeName = data.get()) != null)) { if (localeName.equals(NULLOBJECT)) { localeName = null; } return (String) localeName; } OpenListResourceBundle olrb = localeData.getLocaleNames(locale); if (olrb.containsKey(key)) { localeName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, localeName, referenceQueue)); } return (String) localeName; }
Example 7
Source File: LocaleResources.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 8
Source File: LocaleResources.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public String getLocaleName(String key) { Object localeName = null; String cacheKey = LOCALE_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((localeName = data.get()) != null)) { if (localeName.equals(NULLOBJECT)) { localeName = null; } return (String) localeName; } OpenListResourceBundle olrb = localeData.getLocaleNames(locale); if (olrb.containsKey(key)) { localeName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, localeName, referenceQueue)); } return (String) localeName; }
Example 9
Source File: LocaleResources.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 10
Source File: LocaleResources.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 11
Source File: LocaleResources.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 12
Source File: LocaleResources.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public String getLocaleName(String key) { Object localeName = null; String cacheKey = LOCALE_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((localeName = data.get()) != null)) { if (localeName.equals(NULLOBJECT)) { localeName = null; } return (String) localeName; } OpenListResourceBundle olrb = localeData.getLocaleNames(locale); if (olrb.containsKey(key)) { localeName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, localeName, referenceQueue)); } return (String) localeName; }
Example 13
Source File: LocaleResources.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 14
Source File: LocaleResources.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public String getLocaleName(String key) { Object localeName = null; String cacheKey = LOCALE_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((localeName = data.get()) != null)) { if (localeName.equals(NULLOBJECT)) { localeName = null; } return (String) localeName; } OpenListResourceBundle olrb = localeData.getLocaleNames(locale); if (olrb.containsKey(key)) { localeName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, localeName, referenceQueue)); } return (String) localeName; }
Example 15
Source File: LocaleResources.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 16
Source File: LocaleResources.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 17
Source File: LocaleResources.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 18
Source File: LocaleResources.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 19
Source File: LocaleResources.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public String getCurrencyName(String key) { Object currencyName = null; String cacheKey = CURRENCY_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((currencyName = data.get()) != null)) { if (currencyName.equals(NULLOBJECT)) { currencyName = null; } return (String) currencyName; } OpenListResourceBundle olrb = localeData.getCurrencyNames(locale); if (olrb.containsKey(key)) { currencyName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, currencyName, referenceQueue)); } return (String) currencyName; }
Example 20
Source File: LocaleResources.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public String getLocaleName(String key) { Object localeName = null; String cacheKey = LOCALE_NAMES + key; removeEmptyReferences(); ResourceReference data = cache.get(cacheKey); if (data != null && ((localeName = data.get()) != null)) { if (localeName.equals(NULLOBJECT)) { localeName = null; } return (String) localeName; } OpenListResourceBundle olrb = localeData.getLocaleNames(locale); if (olrb.containsKey(key)) { localeName = olrb.getObject(key); cache.put(cacheKey, new ResourceReference(cacheKey, localeName, referenceQueue)); } return (String) localeName; }