-
public final class GeoEntityUtilityUtility class for checking whether identifiers region code and country calling code belong to geographical entities. For more information about geo vs. non-geo entities see and
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringREGION_CODE_FOR_NON_GEO_ENTITIES
-
Method Summary
Modifier and Type Method Description static booleanisGeoEntity(String regionCode)Determines whether {@code regionCode}belongs to a geographical entity.static booleanisGeoEntity(int countryCallingCode)Determines whether {@code countryCallingCode}belongs to a geographical entity.-
-
Method Detail
-
isGeoEntity
static boolean isGeoEntity(String regionCode)
Determines whether
{@code regionCode}belongs to a geographical entity.
-
isGeoEntity
static boolean isGeoEntity(int countryCallingCode)
Determines whether
{@code countryCallingCode}belongs to a geographical entity.A single country calling code could map to several different regions. It is considered that
{@code countryCallingCode}belongs to a geo entity if all of these regions are geo entitiesNote that this method will not throw an exception even when the underlying mapping for the
{@code countryCallingCode}does not exist, instead it will return{@code false}
-
-
-
-