Modifier and Type | Method and Description |
---|---|
static PhoneNumber |
PhoneNumber.getInstance(int areaCode,
int exchangeCode,
int stationCode)
Get a phone number having the given area code, exchange code, and station
code.
|
PhoneNumber |
Contact.getNumber()
Returns the telephone number of this contact.
|
Modifier and Type | Method and Description |
---|---|
int |
PhoneNumber.compareTo(PhoneNumber other)
Compares two phone numbers for order.
|
void |
Contact.setNumber(PhoneNumber number)
Set the phone number for this contact.
|
void |
ContactSet.update(Contact c,
String name,
PhoneNumber number)
Update the information for an existing contact in this contact set.
|
Constructor and Description |
---|
Contact(String name,
PhoneNumber number)
Initialize this contact to have the specified name and telephone number.
|