|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--LibraryItem | +--Stealable
Abstract container for non-borrowable library items.
Field Summary | |
private java.lang.String |
availability
|
Fields inherited from class LibraryItem |
callNumber, cost, usage |
Constructor Summary | |
Stealable(java.lang.String id,
int val)
Construct a non-borrowable library item given its call number and cost. |
Method Summary | |
private java.lang.String |
getAvailability()
Return availability |
boolean |
isLost()
Has the library item been lost. |
void |
setAvailability(java.lang.String avail)
Set whether item is on-shelf or off-shelf (lost). |
Methods inherited from class LibraryItem |
getCallNumber, getCost, getReplacementCost, getUsage, setUsage |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String availability
Constructor Detail |
public Stealable(java.lang.String id, int val)
Method Detail |
public boolean isLost()
isLost
in class LibraryItem
public void setAvailability(java.lang.String avail)
setAvailability
in interface Availability
private java.lang.String getAvailability()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |