Пример #1
0
 public boolean containsValue(Attribute attribute) {
   if (attribute == null) {
     return false;
   }
   Object curValue = attributesMap.get(attribute.getCategory());
   return attribute.equals(curValue);
 }
Пример #2
0
 public boolean remove(Attribute attribute) {
   if ((attribute == null) || (attributesMap.remove(attribute.getCategory()) == null)) {
     return false;
   }
   return true;
 }
Пример #3
0
 public boolean add(Attribute attribute) {
   Attribute newValue =
       AttributeSetUtilities.verifyAttributeValue(attribute, attributeInterfaceName);
   Object oldValue = attributesMap.put(attribute.getCategory(), newValue);
   return !attribute.equals(oldValue);
 }