@Override public Region getRegion(Locale locale) { for (Region region : regions.values()) { if (locale.equals(region.getLocale()) && region instanceof ISOCountry) { return region; } } return null; }
@Override public Region getRegion(RegionType type, int numericId) { for (Region region : regions.values()) { if (region.getRegionType().equals(type) && region.getNumericRegionCode() == numericId && region instanceof ISOCountry) { return region; } } return null; }