|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--LibraryItem
|
+--Borrowable
Abstract container for borrowable library items
| Field Summary | |
protected int |
availability
days since item borrowed |
int |
BOOK_FINE
Constant fine for late items. |
| Fields inherited from class LibraryItem |
callNumber, cost, usage |
| Constructor Summary | |
Borrowable(java.lang.String id,
int val)
Construct a borrowable library item given its call number and cost. |
|
| Method Summary | |
int |
getReplacementCost()
What is the replacement cost of the library item to the library |
void |
setAvailability(java.lang.String itemAvail)
Set how many days since item was borrowed. |
| Methods inherited from class LibraryItem |
getCallNumber, getCost, getUsage, isLost, setUsage |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public int BOOK_FINE
protected int availability
| Constructor Detail |
public Borrowable(java.lang.String id,
int val)
| Method Detail |
public int getReplacementCost()
getReplacementCost in class LibraryItempublic void setAvailability(java.lang.String itemAvail)
setAvailability in interface Availability
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||