Package edu.pdx.cs410J
Class AbstractPhoneCall
java.lang.Object
edu.pdx.cs410J.AbstractPhoneCall
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PhoneCall
This abstract class represents a phone call between a caller (the
phone number of the person who originates the call) and callee (the
phone number of the person whose receives the phone call). Phone
calls begin and end at given times.
- Author:
- David Whitlock
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the time that this phone call began as aDate.abstract StringReturns a textual representation of the time that this phone call began.abstract StringReturns the phone number of the person who received this phone call.abstract StringReturns the phone number of the person who originated this phone call.Returns the time that this phone call was completed as aDate.abstract StringReturns a textual representation of the time that this phone call was completed.final StringtoString()Returns a brief textual description of this phone call.
-
Constructor Details
-
AbstractPhoneCall
public AbstractPhoneCall()
-
-
Method Details
-
getCaller
Returns the phone number of the person who originated this phone call. -
getCallee
Returns the phone number of the person who received this phone call. -
getBeginTime
Returns the time that this phone call began as aDate. -
getBeginTimeString
Returns a textual representation of the time that this phone call began. -
getEndTime
Returns the time that this phone call was completed as aDate. -
getEndTimeString
Returns a textual representation of the time that this phone call was completed. -
toString
Returns a brief textual description of this phone call.
-