Use more concrete type for return value
Same resources are not allowed for a parent and Set is more suitable than
Collection
Change-Id: Ib45179819d81376678bf8949864b12b5bd721085
diff --git a/core/api/src/main/java/org/onosproject/net/newresource/ResourceStore.java b/core/api/src/main/java/org/onosproject/net/newresource/ResourceStore.java
index 321c861..cca8ed0 100644
--- a/core/api/src/main/java/org/onosproject/net/newresource/ResourceStore.java
+++ b/core/api/src/main/java/org/onosproject/net/newresource/ResourceStore.java
@@ -20,6 +20,7 @@
import java.util.Collection;
import java.util.List;
+import java.util.Set;
/**
* Service for storing resource and consumer information.
@@ -104,13 +105,13 @@
Collection<Resource> getResources(ResourceConsumer consumer);
/**
- * Returns a collection of the child resources of the specified parent.
+ * Returns a set of the child resources of the specified parent.
*
* @param parent parent of the resource to be returned
- * @return a collection of the child resources of the specified resource
+ * @return a set of the child resources of the specified resource
*/
// TODO: need to change the argument type to ResourceId or ResourceId.Discrete
- Collection<Resource> getChildResources(Resource parent);
+ Set<Resource> getChildResources(Resource parent);
/**
* Returns a collection of the resources which are children of the specified parent and