Permalink
Browse files

All methods that return a container now returns a Collection instead …

…of one of its sub-classes.
  • Loading branch information...
1 parent 28019f0 commit 9da280cadbc5ab14be9562d5b316ffc7f4986b70 @ccorsi committed Sep 4, 2010
@@ -23,6 +23,7 @@
*/
package books.persistence.types.orientdb;
+import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
@@ -67,7 +68,7 @@ public String getFirstName() {
* @see books.persistence.Person#getLastNames()
*/
@Override
- public Set<String> getLastNames() {
+ public Collection<String> getLastNames() {
return Util.getValue(doc, LASTNAMES);
}
@@ -77,7 +78,7 @@ public String getFirstName() {
* @see books.persistence.Person#getMiddleNames()
*/
@Override
- public Set<String> getMiddleNames() {
+ public Collection<String> getMiddleNames() {
return Util.getValue(doc, MIDDLENAMES);
}

0 comments on commit 9da280c

Please sign in to comment.