Interface RegionMetadataSource
-
- All Known Subinterfaces:
MetadataSource
- All Known Implementing Classes:
MetadataSourceImpl
,RegionMetadataSourceImpl
public interface RegionMetadataSource
A source of phone metadata split by geographical regions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Phonemetadata.PhoneMetadata
getMetadataForRegion(java.lang.String regionCode)
Returns phone metadata for provided geographical region.
-
-
-
Method Detail
-
getMetadataForRegion
Phonemetadata.PhoneMetadata getMetadataForRegion(java.lang.String regionCode)
Returns phone metadata for provided geographical region.The
regionCode
must be different fromGeoEntityUtility.REGION_CODE_FOR_NON_GEO_ENTITIES
, which has a special meaning and is used to mark non-geographical regions (seeNonGeographicalEntityMetadataSource
for more information).- Returns:
- the phone metadata for provided
regionCode
, or null if there is none. - Throws:
java.lang.IllegalArgumentException
- if providedregionCode
isGeoEntityUtility.REGION_CODE_FOR_NON_GEO_ENTITIES
-
-