/** * Adds an feature for a gadget. * * @param toAdd * the feature to add. */ public void addFeature(String toAdd) { Set<String> features = createSingleFeatureSet(toAdd); addFeatures(features); }
/** * Removes an feature for a gadget. * * @param toRemove * the feature to remove. */ public void removeFeature(String toRemove) { Set<String> features = createSingleFeatureSet(toRemove); removeFeatures(features, this.features); }