diff options
Diffstat (limited to 'source/com/c2kernel/collection/AggregationInstance.java')
| -rw-r--r-- | source/com/c2kernel/collection/AggregationInstance.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/com/c2kernel/collection/AggregationInstance.java b/source/com/c2kernel/collection/AggregationInstance.java index 2eca928..47e7c41 100644 --- a/source/com/c2kernel/collection/AggregationInstance.java +++ b/source/com/c2kernel/collection/AggregationInstance.java @@ -23,23 +23,23 @@ public class AggregationInstance extends Aggregation @Override
- public void addMember(int entityKey, CastorHashMap props, String classProps)
+ public AggregationMember addMember(int entityKey, CastorHashMap props, String classProps)
throws MembershipException
{
if( entityKey!=-1 && exists(entityKey))
throw new MembershipException(entityKey+" already exists in this collection.");
else
- super.addMember(entityKey, props, classProps);
+ return super.addMember(entityKey, props, classProps);
}
@Override
- public void addMember(int entityKey, CastorHashMap props, String classProps, GraphPoint location, int w, int h)
+ public AggregationMember addMember(int entityKey, CastorHashMap props, String classProps, GraphPoint location, int w, int h)
throws MembershipException
{
if( entityKey!=-1 && exists(entityKey))
throw new MembershipException(entityKey+" already exists in this collection.");
else
- super.addMember(entityKey, props, classProps, location, w, h);
+ return super.addMember(entityKey, props, classProps, location, w, h);
}
}
|
