PhoneNumber (Google App Engine API for Java)

Class PhoneNumber

  • java.lang.Object
  • All Implemented Interfaces:, java.lang.Comparable<PhoneNumber>

    public final class PhoneNumber
    extends java.lang.Object
    implements, java.lang.Comparable<PhoneNumber>
    A human-readable phone number. No validation is performed because phone numbers have many different formats - local, long distance, domestic, international, internal extension, TTY, VOIP, SMS, and alternative networks like Skype, XFire and Roger Wilco. They all have their own numbering and addressing formats.
    See Also:
    Serialized Form
    • Constructor Detail

      • PhoneNumber

        public PhoneNumber(java.lang.String number)
    • Method Detail

      • getNumber

        public java.lang.String getNumber()
      • equals

        public boolean equals(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo(PhoneNumber o)
        Specified by:
        compareTo in interface java.lang.Comparable<PhoneNumber>