Class PhoneNumber


  • public final class PhoneNumber
    extends Object
    • Constructor Detail

      • PhoneNumber

        public PhoneNumber​(String phoneNumber,
                           String countryIso,
                           String countryCode)
    • Method Detail

      • emptyPhone

        public static PhoneNumber emptyPhone()
        Returns an empty instance of this class
      • isValid

        public static boolean isValid​(PhoneNumber phoneNumber)
      • isCountryValid

        public static boolean isCountryValid​(PhoneNumber phoneNumber)
      • getCountryCode

        public String getCountryCode()
        Returns country code
      • getPhoneNumber

        public String getPhoneNumber()
        Returns phone number without country code
      • getCountryIso

        public String getCountryIso()
        Returns 2 char country ISO