Package | Description |
---|---|
myhw3.data |
Modifier and Type | Method and Description |
---|---|
static Video |
Data.newVideo(java.lang.String title,
int year,
java.lang.String director)
Factory method for Video objects.
|
Video |
Record.video()
Returns the video.
|
Modifier and Type | Method and Description |
---|---|
int |
Video.compareTo(Video that)
Compares the attributes of this object with those of thatObject, in
the following order: title, year, director.
|
Record |
Inventory.get(Video v)
Return the record for a given Video; if not present, return
null . |
static Command |
Data.newAddCmd(Inventory inventory,
Video video,
int change)
Returns a command to add or remove copies of a video from the inventory.
|
static Command |
Data.newInCmd(Inventory inventory,
Video video)
Returns a command to check in a video.
|
static Command |
Data.newOutCmd(Inventory inventory,
Video video)
Returns a command to check out a video.
|