Package edu.pdx.cs410J
Class AbstractPhoneBill<T extends AbstractPhoneCall>
java.lang.Object
edu.pdx.cs410J.AbstractPhoneBill<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PhoneBill
public abstract class AbstractPhoneBill<T extends AbstractPhoneCall>
extends Object
implements Serializable
This abstract class represents a customer's phone bill that
consists of multiple phone calls.
- Author:
- David Whitlock
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addPhoneCall
(T call) Adds a phone call to this phone billabstract String
Returns the name of the customer whose phone bill this isabstract Collection<T>
Returns all of the phone calls (as instances ofAbstractPhoneCall
) in this phone billfinal String
toString()
Returns a brief textual description of this phone bill
-
Constructor Details
-
AbstractPhoneBill
public AbstractPhoneBill()
-
-
Method Details
-
getCustomer
Returns the name of the customer whose phone bill this is -
addPhoneCall
Adds a phone call to this phone bill -
getPhoneCalls
Returns all of the phone calls (as instances ofAbstractPhoneCall
) in this phone bill -
toString
Returns a brief textual description of this phone bill
-