|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--LibraryItem | +--Borrowable | +--LibraryBook
Container for book items. Implements isLost and getReplacementCost functions.
Fields inherited from class Borrowable |
availability, BOOK_FINE |
Fields inherited from class LibraryItem |
callNumber, cost, usage |
Constructor Summary | |
LibraryBook(java.lang.String id,
int val)
Construct a library item given its call number and cost. |
Method Summary | |
int |
getReplacementCost()
What is the replacement cost of the library item to the library. |
boolean |
isLost()
Has the library item been lost. |
Methods inherited from class Borrowable |
setAvailability |
Methods inherited from class LibraryItem |
getCallNumber, getCost, getUsage, setUsage |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public LibraryBook(java.lang.String id, int val)
Method Detail |
public boolean isLost()
isLost
in class LibraryItem
public int getReplacementCost()
getReplacementCost
in class Borrowable
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |