diff options
| author | abranson <andrew.branson@cern.ch> | 2012-03-13 15:47:58 +0100 |
|---|---|---|
| committer | abranson <andrew.branson@cern.ch> | 2012-03-13 15:47:58 +0100 |
| commit | 612739b1dc0c78d45c0e6be995c094d1f284d3f6 (patch) | |
| tree | d107c2eadec9d076cde9bb329099d0747d468d07 /source/com/c2kernel/collection/AggregationInstance.java | |
| parent | 70327d7c233941e6d583f65352363f2c82dc13ef (diff) | |
addMember methods return new CollectionmMember
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);
}
}
|
