* @param <T>
* Type for which ids are generated.
*/
-public interface Config<T> extends Identifiable<Config> {
-
- // TODO define what happens when there is a duplicate item.
-
+public interface Config<T extends Identifiable> extends Identifiable<Config> {
/**
* Adds an item. No item with the same id may exist.
*
* @param aT
* item
+ * @throws ConfigException
+ * In case an object with the same id already exists.
*/
void add(T aT);