Methods Summary |
---|
public void | clear()Removes all key/value pairs from this {@code Attributes}.
map.clear();
|
public java.lang.Object | clone()
Attributes clone;
try {
clone = (Attributes) super.clone();
} catch (CloneNotSupportedException e) {
return null;
}
clone.map = (Map<Object, Object>) ((HashMap) map).clone();
return clone;
|
public boolean | containsKey(java.lang.Object key)Determines whether this {@code Attributes} contains the specified key.
return map.containsKey(key);
|
public boolean | containsValue(java.lang.Object value)Determines whether this {@code Attributes} contains the specified value.
return map.containsValue(value);
|
public java.util.Set | entrySet()Returns a set containing map entries for each of the key/value pair
contained in this {@code Attributes}.
return map.entrySet();
|
public boolean | equals(java.lang.Object obj)Determines if this {@code Attributes} and the parameter {@code
Attributes} are equal. Two {@code Attributes} instances are equal if they
contain the same keys and values.
if (this == obj) {
return true;
}
if (obj instanceof Attributes) {
return map.equals(((Attributes) obj).map);
}
return false;
|
public java.lang.Object | get(java.lang.Object key)Returns the value associated with the parameter key.
return map.get(key);
|
public java.lang.String | getValue(java.util.jar.Attributes$Name name)Returns the value associated with the parameter {@code Attributes.Name}
key.
return (String) map.get(name);
|
public java.lang.String | getValue(java.lang.String name)Returns the string associated with the parameter name.
return (String) map.get(new Attributes.Name(name));
|
public int | hashCode()Returns the hash code of this {@code Attributes}.
return map.hashCode();
|
public boolean | isEmpty()Determines whether this {@code Attributes} contains any keys.
return map.isEmpty();
|
public java.util.Set | keySet()Returns a {@code Set} containing all the keys found in this {@code
Attributes}.
return map.keySet();
|
public java.lang.Object | put(java.lang.Object key, java.lang.Object value)Stores key/value pairs in this {@code Attributes}.
return map.put((Name)key, (String)value);
|
public void | putAll(java.util.Map attrib)Stores all the key/value pairs in the argument in this {@code Attributes}
.
if (attrib == null || !(attrib instanceof Attributes)) {
throw new ClassCastException();
}
this.map.putAll(attrib);
|
public java.lang.String | putValue(java.lang.String name, java.lang.String val)Stores the value {@code val} associated with the key {@code name} in this
{@code Attributes}.
return (String) map.put(new Attributes.Name(name), val);
|
public java.lang.Object | remove(java.lang.Object key)Deletes the key/value pair with key {@code key} from this {@code
Attributes}.
return map.remove(key);
|
public int | size()Returns the number of key/value pairs associated with this {@code
Attributes}.
return map.size();
|
public java.util.Collection | values()Returns a collection of all the values present in this {@code Attributes}
.
return map.values();
|