public boolean containsValue(Attribute attribute) { if (attribute == null) { return false; } Object curValue = attributesMap.get(attribute.getCategory()); return attribute.equals(curValue); }
public boolean remove(Attribute attribute) { if ((attribute == null) || (attributesMap.remove(attribute.getCategory()) == null)) { return false; } return true; }
public boolean add(Attribute attribute) { Attribute newValue = AttributeSetUtilities.verifyAttributeValue(attribute, attributeInterfaceName); Object oldValue = attributesMap.put(attribute.getCategory(), newValue); return !attribute.equals(oldValue); }