Modifier and Type | Method and Description |
---|---|
CellNumber |
CellPhone.favorite()
Returns the favorite cell number that has been called using this cell phone.
|
CellNumber |
CellPhone.getNumber()
Returns a new copy of the cell number for this phone.
|
Modifier and Type | Method and Description |
---|---|
List<CellNumber> |
CellPhone.getCallLog()
Returns a shallow copy of call log for this phone.
|
Modifier and Type | Method and Description |
---|---|
int |
CellNumber.compareTo(CellNumber other)
Compares two cell numbers for order.
|
void |
CellPhone.dial(CellNumber number)
Dial a cell number using this phone.
|
void |
CellPhone.setNumber(CellNumber number)
Sets the cell number of this phone to a new copy of the
given cell number.
|
Constructor and Description |
---|
CellNumber(CellNumber other)
Initialize this cell number by copying the area, exchange, and
station codes of another cell number.
|
CellPhone(CellNumber number)
Initializes this cell phone given its cell number.
|
CellPhone(CellNumber number,
List<CellNumber> callLog)
Initializes this cell phone given a cell number and a call log.
|
Constructor and Description |
---|
CellPhone(CellNumber number,
List<CellNumber> callLog)
Initializes this cell phone given a cell number and a call log.
|