Example #1
0
 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);
 }
Example #2
0
 public boolean add(Attribute attribute) {
   Attribute newValue =
       AttributeSetUtilities.verifyAttributeValue(attribute, attributeInterfaceName);
   Object oldValue = attributesMap.put(attribute.getCategory(), newValue);
   return !attribute.equals(oldValue);
 }