@ThreadSafe public final class CountryCache extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsCountry(Locale aCountry)
Check if the passed country is known.
|
static boolean |
containsCountry(String sCountry)
Check if the passed country is known.
|
static Set<String> |
getAllCountries() |
static Set<Locale> |
getAllCountryLocales() |
static Locale |
getCountry(Locale aCountry) |
static Locale |
getCountry(String sCountry) |
static void |
resetCache()
Reset the cache to the initial state.
|
@Nonnull @ReturnsMutableCopy public static Set<String> getAllCountries()
null.@Nonnull @ReturnsMutableCopy public static Set<Locale> getAllCountryLocales()
null.public static boolean containsCountry(@Nullable Locale aCountry)
aCountry - The country to check. May be null.true if the passed country is contained,
false otherwise.public static boolean containsCountry(@Nullable String sCountry)
sCountry - The country to check. May be null.true if the passed country is contained,
false otherwise.public static void resetCache()
Copyright © 2006–2015 phloc systems. All rights reserved.