The new Item is returned, and it is ready to have its Properties modified. Returns null
if the operation fails or the Container already contains a Item with the given ID.
This functionality is optional.
@param itemId ID of the Item to be created @return Created new Item, ornull
in case of a failure
@throws UnsupportedOperationException if adding an item with an explicit item ID is not supported by the container
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|