HW2 - bilekpe5
ItemStock.java
public modifier added:
- constructor
- IncreaseItemCount
- decreaseItemCount
- getCount
- getItem
constructor:
- null refItem -> IllegalArgumentException thrown
IncreaseItemCount:
- negative x -> IllegalArgumentException thrown
decreaseItemCount:
- negative x -> IllegalArgumentException thrown
Storage.java
constructor Storage(HashMap<Integer, ItemStock> stock):
- null stock -> IllegalArgumentException thrown
insertItems:
- null item -> IllegalArgumentException thrown