Package | Description |
---|---|
myhw1 |
Modifier and Type | Field and Description |
---|---|
(package private) VideoObj |
Record.video
The video.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<VideoObj,Record> |
InventorySet.data
Invariant:
_data != null |
Modifier and Type | Method and Description |
---|---|
void |
InventorySet.addNumOwned(VideoObj video,
int change)
Add or remove copies of a video from the inventory.
|
void |
InventorySet.checkIn(VideoObj video)
Check in a video.
|
void |
InventorySet.checkOut(VideoObj video)
Check out a video.
|
int |
VideoObj.compareTo(VideoObj that)
Compares the attributes of this object with those of thatObject, in
the following order: title, year, director.
|
Record |
InventorySet.get(VideoObj v)
Return a copy of the record for a given Video; if not present, return
null . |
Constructor and Description |
---|
Record(VideoObj video,
int numOwned,
int numOut,
int numRentals)
Initialize all object attributes.
|