Class E164PhoneNumber


  • public class E164PhoneNumber
    extends Object
    E164 Phone Number representation class helper
    • Method Detail

      • valueOf

        public static E164PhoneNumber valueOf​(String value)
        Create a new instance
        Parameters:
        value - Phone number value
        Returns:
        The newly created E164 instance
      • validate

        public static boolean validate​(String value)
        Validate value against E164 representation pattern,
        Parameters:
        value - String value representation to be checked
        Returns:
        TRUE/FALSE
      • setStrict

        public static void setStrict​(boolean strict)
        Configure if invalid string values will throw an Exception or not
        Parameters:
        strict - Set strict mode to true/false
      • stringValue

        public String stringValue()
        Get current value as a String
        Returns:
        The value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object