Class PhoneNumber


  • public class PhoneNumber
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PhoneNumber​(java.lang.String value)
      Creates a phone number consisting of an optional country calling code and a national number: +4799998888
    • Method Summary

      Modifier and Type Method Description
      java.lang.String asString()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PhoneNumber

        public PhoneNumber​(java.lang.String value)
        Creates a phone number consisting of an optional country calling code and a national number: +4799998888
    • Method Detail

      • asString

        public java.lang.String asString()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object