/** * Sets a user-defined attribute. * * @param key the key of the attribute * @param value the value of the attribute * @return The old value of the attribute. <tt>null</tt> if it is new. */ public Object setAttribute(String key, Object value) { if (value == null) { return removeAttribute(key); } return attributes.put(key, value); }
/** * Sets a user-defined attribute. * * @param key the key of the attribute * @param value the value of the attribute * @return The old value of the attribute. <tt>null</tt> if it is new. */ public Object setAttribute(String key, Object value) { if (value == null) { return removeAttribute(key); } return attributes.put(key, value); }
/** * Sets a user-defined attribute. * * @param key the key of the attribute * @param value the value of the attribute * @return The old value of the attribute. <tt>null</tt> if it is new. */ public Object setAttribute(String key, Object value) { if (value == null) { return removeAttribute(key); } return attributes.put(key, value); }