Packages

package model

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class RegionMetadata(region: Region, countryCodeToTypePatterns: Map[Int, Map[PhoneNumberType, String]]) extends Product with Serializable

    This class stores a metadata for region.

    This class stores a metadata for region.

    The metadata consists of mapping of phone number type to regex for each country code represented in that region.

    Each regular expression in combination with the associated country code can be used to generate valid phone numbers. Generated phone numbers can be parsed by libphonenumber BUT make sure you are using a comparable version of this library, otherwise, valid phone numbers may be recognized as invalid.

    region

    the region for which metadata is provided.

    countryCodeToTypePatterns

    the mapping of phone number type to regex pattern for each country code represented in that region.

Value Members

  1. object PhoneNumberTypes extends Enumeration

    An enumeration representing the set of supported phone number types.

  2. object RegionMetadata extends Serializable
  3. object Regions extends Enumeration

    An enumeration representing the set of supported regions as represented by CLDR two-letter region codes, with the exception of the non-geographical region which is represented by the Regions.NonGeo value.

Ungrouped