Class PhoneNumber

java.lang.Object
ru.foodtechlab.abe.core.entities.PhoneNumber

public class PhoneNumber extends Object
  • Field Details

    • phoneNumber

      protected String phoneNumber
    • countryCode

      protected CountryCode countryCode
    • phoneNumberInternational

      protected String phoneNumberInternational
    • phoneNumberE164

      protected String phoneNumberE164
    • valid

      protected Boolean valid
  • Constructor Details

    • PhoneNumber

      public PhoneNumber()
  • Method Details

    • format

      public static String format(String value)
    • isValid

      public static boolean isValid(String challenge)
    • setPhoneNumber

      public void setPhoneNumber(String phoneNumber)
    • of

      public static PhoneNumber of(String value) throws com.google.i18n.phonenumbers.NumberParseException
      Throws:
      com.google.i18n.phonenumbers.NumberParseException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object