PhoneNumber Class

Used to represent a phone number.

Constructors

PhoneNumber( String phoneNumber, String type )

Public Methods

getNumber( ) returns String
getType( ) returns String
Returns the type of phone number. Options include:
  • AssistantPhone
  • BusinessFax
  • BusinessPhone
  • BusinessPhone2
  • Callback
  • CarPhone
  • CompanyMainPhone
  • HomeFax
  • HomePhone
  • HomePhone2
  • Isdn
  • MobilePhone
  • OtherFax
  • OtherTelephone
  • Pager
  • PrimaryPhone
  • RadioPhone
  • Telex
  • TtyTddPhone
toString( ) returns String
hashCode( ) returns int
equals( Object obj ) returns boolean

Static Methods

getTypes( ) returns String[]
Returns a static list of phone number types:
  • AssistantPhone
  • BusinessFax
  • BusinessPhone
  • BusinessPhone2
  • Callback
  • CarPhone
  • CompanyMainPhone
  • HomeFax
  • HomePhone
  • HomePhone2
  • Isdn
  • MobilePhone
  • OtherFax
  • OtherTelephone
  • Pager
  • PrimaryPhone
  • RadioPhone
  • Telex
  • TtyTddPhone