Package | Description |
---|---|
myhw2.data |
Modifier and Type | Class and Description |
---|---|
private static class |
InventorySet.RecordObj
Implementation of Record interface.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Video,Record> |
InventorySet.data |
Modifier and Type | Method and Description |
---|---|
Record |
Inventory.get(Video v)
Return the record for a given Video; if not present, return
null . |
Record |
InventorySet.get(Video v) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Record> |
Inventory.iterator()
Return an iterator over Records in the Inventory.
|
java.util.Iterator<Record> |
InventorySet.iterator() |
java.util.Iterator<Record> |
Inventory.iterator(java.util.Comparator<Record> comparator)
Return an iterator over the Inventory, sorted accoring the
Comparator.
|
java.util.Iterator<Record> |
InventorySet.iterator(java.util.Comparator<Record> comparator) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Record> |
Inventory.iterator(java.util.Comparator<Record> comparator)
Return an iterator over the Inventory, sorted accoring the
Comparator.
|
java.util.Iterator<Record> |
InventorySet.iterator(java.util.Comparator<Record> comparator) |