/** * Removes the specified contact group from the this group's subgroups. * * @param subgroup the MockContactGroup subgroup to remove. */ public void removeSubGroup(MockContactGroup subgroup) { this.subGroups.remove(subgroup); subgroup.setParentGroup(null); }
/** * Adds the specified contact group to the contained by this group. * * @param subgroup the MockContactGroup to add as a subgroup to this group. */ public void addSubgroup(MockContactGroup subgroup) { this.subGroups.add(subgroup); subgroup.setParentGroup(this); }