public Attribute get(Class<?> attributeCategory) { // 1.5 support requires the following changes // public Attribute get(Class<?> attributeCategory) { AttributeSetUtilities.verifyAttributeCategory(attributeCategory, Attribute.class); return attributesMap.get(attributeCategory); }
public boolean add(Attribute attribute) { Attribute newValue = AttributeSetUtilities.verifyAttributeValue(attribute, attributeInterfaceName); Object oldValue = attributesMap.put(attribute.getCategory(), newValue); return !attribute.equals(oldValue); }