equality based on the ids of the contents of SingleRouterConfig.
[xmlrouter] / config / src / main / java / org / wamblee / xmlrouter / config / Config.java
index e825f9fc1d29b3bf77c9e673e5ea6c91f992eb2c..baa4c8b4d72d0f6d2c38bba418ba7f354882721c 100644 (file)
@@ -15,7 +15,7 @@
  */
 package org.wamblee.xmlrouter.config;
 
-import java.util.List;
+import java.util.Collection;
 
 import org.wamblee.xmlrouter.common.Id;
 
@@ -34,7 +34,7 @@ public interface Config<T extends Identifiable> extends Identifiable<Config> {
      * 
      * @param aT
      *            item
-     * @throws DuplicateException
+     * @throws ConfigException
      *             In case an object with the same id already exists.
      */
     void add(T aT);
@@ -51,5 +51,5 @@ public interface Config<T extends Identifiable> extends Identifiable<Config> {
     /**
      * @return All available items.
      */
-    List<T> values();
+    Collection<T> values();
 }
\ No newline at end of file