# Attributes

public class **Attributes** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
implements [Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> [Cloneable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Cloneable.html) The Attributes class maps Manifest attribute names to associated string
values. Valid attribute names are case-insensitive, are restricted to
the ASCII characters in the set \[0-9a-zA-Z_-\], and cannot exceed 70
characters in length. Attribute values can contain any characters and
will be UTF8-encoded when written to the output stream. See the
[JAR File Specification](https://developers.google.com/j2objc/javadoc/jre/technotes/guides/jar/jar.html)
for more information about valid attribute names and values.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Manifest.html`

### Nested Class Summary

|---|---|---|---|
| class | [Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) || The Attributes.Name class represents an attribute name stored in this Map. |

### Field Summary

|---|---|---|
| protected [Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#map) | The attribute name-value mappings. |

### Public Constructor Summary

|---|---|
|   | [Attributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#Attributes())() Constructs a new, empty Attributes object with default size. |
|   | [Attributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#Attributes(int))(int size) Constructs a new, empty Attributes object with the specified initial size. |
|   | [Attributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#Attributes(java.util.jar.Attributes))([Attributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html) attr) Constructs a new Attributes object with the same attribute name-value mappings as in the specified Attributes. |

### Public Method Summary

|---|---|
| void | [clear](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#clear())() Removes all attributes from this Map. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#clone())() Returns a copy of the Attributes, implemented as follows: ``` public Object clone() { return new Attributes(this); } ``` Since the attribute names and values are themselves immutable, the Attributes returned can be safely modified without affecting the original. |
| boolean | [containsKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#containsKey(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) name) Returns true if this Map contains the specified attribute name (key). |
| boolean | [containsValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#containsValue(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Returns true if this Map maps one or more attribute names (keys) to the specified value. |
| [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Entry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.Entry.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>\> | [entrySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#entrySet())() Returns a Collection view of the attribute name-value mappings contained in this Map. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) o) Compares the specified Attributes object with this Map for equality. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#get(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) name) Returns the value of the specified attribute name, or null if the attribute name was not found. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#getValue(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#getValue(java.util.jar.Attributes.Name))([Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) name) Returns the value of the specified Attributes.Name, or null if the attribute was not found. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#hashCode())() Returns the hash code value for this Map. |
| boolean | [isEmpty](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#isEmpty())() Returns true if this Map contains no attributes. |
| [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [keySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#keySet())() Returns a Set view of the attribute names (keys) contained in this Map. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#put(java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) name, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Associates the specified value with the specified attribute name (key) in this Map. |
| void | [putAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#putAll(java.util.Map<?,%20?>))([Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<?, ?\> attr) Copies all of the attribute name-value mappings from the specified Attributes to this Map. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [putValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#putValue(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) value) Associates the specified value with the specified attribute name, specified as a String. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#remove(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) name) Removes the attribute with the specified name (key) from this Map. |
| int | [size](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#size())() Returns the number of attributes in this Map. |
| [Collection](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [values](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html#values())() Returns a Collection view of the attribute values contained in this Map. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

From interface [java.util.Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)

|---|---|
| abstract void | [clear](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#clear())() Removes all of the mappings from this map (optional operation). |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [compute](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#compute(K,%20java.util.function.BiFunction<?%20super%20K,%20?%20super%20V,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super K, ? super V, ? extends V\> remappingFunction) Attempts to compute a mapping for the specified key and its current mapped value (or `null` if there is no current mapping). |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [computeIfAbsent](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#computeIfAbsent(K,%20java.util.function.Function<?%20super%20K,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Function](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/Function.html)\<? super K, ? extends V\> mappingFunction) If the specified key is not already associated with a value (or is mapped to `null`), attempts to compute its value using the given mapping function and enters it into this map unless `null`. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [computeIfPresent](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#computeIfPresent(K,%20java.util.function.BiFunction<?%20super%20K,%20?%20super%20V,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super K, ? super V, ? extends V\> remappingFunction) If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value. |
| abstract boolean | [containsKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#containsKey(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Returns `true` if this map contains a mapping for the specified key. |
| abstract boolean | [containsValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#containsValue(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Returns `true` if this map maps one or more keys to the specified value. |
| abstract [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Entry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.Entry.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>\> | [entrySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#entrySet())() Returns a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html` view of the mappings contained in this map. |
| abstract boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) o) Compares the specified object with this map for equality. |
| void | [forEach](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#forEach(java.util.function.BiConsumer<?%20super%20K,%20?%20super%20V>))([BiConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiConsumer.html)\<? super K, ? super V\> action) Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#get(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Returns the value to which the specified key is mapped, or `null` if this map contains no mapping for the key. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [getOrDefault](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#getOrDefault(java.lang.Object,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) defaultValue) Returns the value to which the specified key is mapped, or `defaultValue` if this map contains no mapping for the key. |
| abstract int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#hashCode())() Returns the hash code value for this map. |
| abstract boolean | [isEmpty](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#isEmpty())() Returns `true` if this map contains no key-value mappings. |
| abstract [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [keySet](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#keySet())() Returns a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html` view of the keys contained in this map. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [merge](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#merge(K,%20V,%20java.util.function.BiFunction<?%20super%20V,%20?%20super%20V,%20?%20extends%20V>))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value, [BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super V, ? super V, ? extends V\> remappingFunction) If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [put](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#put(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Associates the specified value with the specified key in this map (optional operation). |
| abstract void | [putAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#putAll(java.util.Map<?%20extends%20K,%20?%20extends%20V>))([Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<? extends K, ? extends V\> m) Copies all of the mappings from the specified map to this map (optional operation). |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [putIfAbsent](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#putIfAbsent(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) If the specified key is not already associated with a value (or is mapped to `null`) associates it with the given value and returns `null`, else returns the current value. |
| boolean | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#remove(java.lang.Object,%20java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Removes the entry for the specified key only if it is currently mapped to the specified value. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [remove](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#remove(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key) Removes the mapping for a key from this map if it is present (optional operation). |
| boolean | [replace](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#replace(K,%20V,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) oldValue, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) newValue) Replaces the entry for the specified key only if currently mapped to the specified value. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [replace](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#replace(K,%20V))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) key, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Replaces the entry for the specified key only if it is currently mapped to some value. |
| void | [replaceAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#replaceAll(java.util.function.BiFunction<?%20super%20K,%20?%20super%20V,%20?%20extends%20V>))([BiFunction](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/BiFunction.html)\<? super K, ? super V, ? extends V\> function) Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. |
| abstract int | [size](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#size())() Returns the number of key-value mappings in this map. |
| abstract [Collection](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\> | [values](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html#values())() Returns a `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html` view of the values contained in this map. |

## Fields

#### protected [Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>
**map**

The attribute name-value mappings.

## Public Constructors

#### public
**Attributes**
()

Constructs a new, empty Attributes object with default size.

#### public
**Attributes**
(int size)

Constructs a new, empty Attributes object with the specified
initial size.

##### Parameters

| size | the initial number of attributes |
|---|---|

#### public
**Attributes**
([Attributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.html) attr)

Constructs a new Attributes object with the same attribute name-value
mappings as in the specified Attributes.

##### Parameters

| attr | the specified Attributes |
|---|---|

## Public Methods

#### public void
**clear**
()

Removes all attributes from this Map.

#### public [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**clone**
()

Returns a copy of the Attributes, implemented as follows:

```
     public Object clone() { return new Attributes(this); }
 
```
Since the attribute names and values are themselves immutable, the Attributes returned can be safely modified without affecting the original.

<br />

##### Returns

- a copy of this object.

#### public boolean
**containsKey**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) name)

Returns true if this Map contains the specified attribute name (key).

##### Parameters

| name | the attribute name |
|---|---|

##### Returns

- true if this Map contains the specified attribute name

#### public boolean
**containsValue**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value)

Returns true if this Map maps one or more attribute names (keys)
to the specified value.

##### Parameters

| value | the attribute value |
|---|---|

##### Returns

- true if this Map maps one or more attribute names to the specified value

#### public [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Entry](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.Entry.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html), [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>\>
**entrySet**
()

Returns a Collection view of the attribute name-value mappings
contained in this Map.

##### Returns

- a set view of the mappings contained in this map

#### public boolean
**equals**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) o)

Compares the specified Attributes object with this Map for equality.
Returns true if the given object is also an instance of Attributes
and the two Attributes objects represent the same mappings.

##### Parameters

| o | the Object to be compared |
|---|---|

##### Returns

- true if the specified Object is equal to this Map

#### public [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**get**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) name)

Returns the value of the specified attribute name, or null if the
attribute name was not found.

##### Parameters

| name | the attribute name |
|---|---|

##### Returns

- the value of the specified attribute name, or null if not found.

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getValue**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name)

Returns the value of the specified attribute name, specified as
a string, or null if the attribute was not found. The attribute
name is case-insensitive.


This method is defined as:

```
      return (String)get(new Attributes.Name((String)name));
 
```

<br />

##### Parameters

| name | the attribute name as a string |
|---|---|

##### Returns

- the String value of the specified attribute name, or null if not found.

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | if the attribute name is invalid |
|---|---|

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getValue**
([Attributes.Name](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/Attributes.Name.html) name)

Returns the value of the specified Attributes.Name, or null if the
attribute was not found.


This method is defined as:

```
     return (String)get(name);
 
```

<br />

##### Parameters

| name | the Attributes.Name object |
|---|---|

##### Returns

- the String value of the specified Attribute.Name, or null if not found.

#### public int
**hashCode**
()

Returns the hash code value for this Map.

##### Returns

- this object's hash code.

#### public boolean
**isEmpty**
()

Returns true if this Map contains no attributes.

##### Returns

- `true` if this map contains no key-value mappings

#### public [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>
**keySet**
()

Returns a Set view of the attribute names (keys) contained in this Map.

##### Returns

- a set view of the keys contained in this map

#### public [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**put**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) name, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value)

Associates the specified value with the specified attribute name
(key) in this Map. If the Map previously contained a mapping for
the attribute name, the old value is replaced.

##### Parameters

| name | the attribute name |
| value | the attribute value |
|---|---|

##### Returns

- the previous value of the attribute, or null if none

##### Throws

| [ClassCastException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ClassCastException.html) | if the name is not a Attributes.Name or the value is not a String |
|---|---|

#### public void
**putAll**
([Map](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Map.html)\<?, ?\> attr)

Copies all of the attribute name-value mappings from the specified
Attributes to this Map. Duplicate mappings will be replaced.

##### Parameters

| attr | the Attributes to be stored in this map |
|---|---|

##### Throws

| [ClassCastException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/ClassCastException.html) | if attr is not an Attributes |
|---|---|

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**putValue**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) value)

Associates the specified value with the specified attribute name,
specified as a String. The attributes name is case-insensitive.
If the Map previously contained a mapping for the attribute name,
the old value is replaced.


This method is defined as:

```
      return (String)put(new Attributes.Name(name), value);
 
```

<br />

##### Parameters

| name | the attribute name as a string |
| value | the attribute value |
|---|---|

##### Returns

- the previous value of the attribute, or null if none

##### Throws

| [IllegalArgumentException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/IllegalArgumentException.html) | if the attribute name is invalid |
|---|---|

#### public [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**remove**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) name)

Removes the attribute with the specified name (key) from this Map.
Returns the previous attribute value, or null if none.

##### Parameters

| name | attribute name |
|---|---|

##### Returns

- the previous value of the attribute, or null if none

#### public int
**size**
()

Returns the number of attributes in this Map.

##### Returns

- the number of key-value mappings in this map

#### public [Collection](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Collection.html)\<[Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)\>
**values**
()

Returns a Collection view of the attribute values contained in this Map.

##### Returns

- a collection view of the values contained in this map