public class ItemDictionary extends Dictionary<Item>
| Constructor and Description |
|---|
ItemDictionary() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String key,
ItemFactory... factories)
Add multiple objects to the dictionary.
|
void |
add(java.lang.String key,
ItemFactory factory)
Add an object to the dictionary.
|
void |
remove(java.lang.String key,
ItemFactory... factories)
Removes multiple objects from the dictionary.
|
void |
remove(java.lang.String key,
ItemFactory factory)
Removes an object from the dictionary.
|
add, add, find, forEach, get, keys, parallelStream, remove, remove, removeAll, stream, whenEntryAdded, whenEntryRemovedpublic void add(java.lang.String key,
ItemFactory factory)
key - the name of the object.factory - the item to register.public void add(java.lang.String key,
ItemFactory... factories)
key - the name of the object.factories - the items to register.public void remove(java.lang.String key,
ItemFactory factory)
key - the name of the object.factory - the item to remove.public void remove(java.lang.String key,
ItemFactory... factories)
key - the name of the object.factories - the items to remove.