diff options
Diffstat (limited to 'source/com/c2kernel/collection/Parent2ChildCollection.java')
| -rw-r--r-- | source/com/c2kernel/collection/Parent2ChildCollection.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/com/c2kernel/collection/Parent2ChildCollection.java b/source/com/c2kernel/collection/Parent2ChildCollection.java index 09e9f07..c59132e 100644 --- a/source/com/c2kernel/collection/Parent2ChildCollection.java +++ b/source/com/c2kernel/collection/Parent2ChildCollection.java @@ -107,9 +107,8 @@ abstract public class Parent2ChildCollection<E extends CollectionMember> impleme }
@Override
- public CollectionMember getMember(int memberId) throws ObjectNotFoundException {
- for (Object name : mMembers.list) {
- CollectionMember element = (CollectionMember)name;
+ public E getMember(int memberId) throws ObjectNotFoundException {
+ for (E element : mMembers.list) {
if (element.getID() == memberId)
return element;
}
@@ -123,6 +122,6 @@ abstract public class Parent2ChildCollection<E extends CollectionMember> impleme }
@Override
- public abstract void addMember(int entityKey, CastorHashMap props, String classProps) throws MembershipException;
+ public abstract E addMember(int entityKey, CastorHashMap props, String classProps) throws MembershipException;
}
|
