Beispiel #1
0
 public String put(String key, String value) {
   String dataKey = Attributes.dataKey(key);
   String oldValue =
       Attributes.this.hasKey(dataKey)
           ? ((Attribute) Attributes.this.attributes.get(dataKey)).getValue()
           : null;
   Attributes.this.attributes.put(dataKey, new Attribute(dataKey, value));
   return oldValue;
 }