Add an item.paramitem The item to add. items.add(item);
items.add(item);
Get a copy of all of the values.returnAn unmodifiable set that is a copy of all items in the inventory. return Collections.unmodifiableSet(items);
return Collections.unmodifiableSet(items);
Get an iterator for all items.returnThe iterator for the inventory. return items.iterator();
return items.iterator();
Remove an item.paramitem The item to remove. items.remove(item);
items.remove(item);