# Attributes.Name

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Fields](https://developer.android.com/reference/java/util/jar/Attributes.Name#lfields)\|[Ctors](https://developer.android.com/reference/java/util/jar/Attributes.Name#pubctors)\|[Methods](https://developer.android.com/reference/java/util/jar/Attributes.Name#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/java/util/jar/Attributes.Name#inhmethods)  

# Attributes.Name

`
public
static


class
Attributes.Name
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|-------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | java.util.jar.Attributes.Name |

<br />

*** ** * ** ***

The Attributes.Name class represents an attribute name stored in this Map. 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://docs.oracle.com/en/java/javase/17/docs/specs/jar/jar.html)for more information about valid attribute names and values.

## Summary

|                                                                                                                                                                ### Fields                                                                                                                                                                ||
|-----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [CLASS_PATH](https://developer.android.com/reference/java/util/jar/Attributes.Name#CLASS_PATH) `Name`object for`Class-Path`manifest attribute.                                                                          |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [CONTENT_TYPE](https://developer.android.com/reference/java/util/jar/Attributes.Name#CONTENT_TYPE) `Name`object for`Content-Type`manifest attribute.                                                                    |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [EXTENSION_INSTALLATION](https://developer.android.com/reference/java/util/jar/Attributes.Name#EXTENSION_INSTALLATION) *This field was deprecated in API level 26. Extension mechanism is no longer supported.*         |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [EXTENSION_LIST](https://developer.android.com/reference/java/util/jar/Attributes.Name#EXTENSION_LIST) `Name`object for`Extension-List`manifest attribute used for the extension mechanism that is no longer supported. |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [EXTENSION_NAME](https://developer.android.com/reference/java/util/jar/Attributes.Name#EXTENSION_NAME) `Name`object for`Extension-Name`manifest attribute used for the extension mechanism that is no longer supported. |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [IMPLEMENTATION_TITLE](https://developer.android.com/reference/java/util/jar/Attributes.Name#IMPLEMENTATION_TITLE) `Name`object for`Implementation-Title`manifest attribute used for package versioning.                |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [IMPLEMENTATION_URL](https://developer.android.com/reference/java/util/jar/Attributes.Name#IMPLEMENTATION_URL) *This field was deprecated in API level 26. Extension mechanism is no longer supported.*                 |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [IMPLEMENTATION_VENDOR](https://developer.android.com/reference/java/util/jar/Attributes.Name#IMPLEMENTATION_VENDOR) `Name`object for`Implementation-Vendor`manifest attribute used for package versioning.             |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [IMPLEMENTATION_VENDOR_ID](https://developer.android.com/reference/java/util/jar/Attributes.Name#IMPLEMENTATION_VENDOR_ID) *This field was deprecated in API level 26. Extension mechanism is no longer supported.*     |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [IMPLEMENTATION_VERSION](https://developer.android.com/reference/java/util/jar/Attributes.Name#IMPLEMENTATION_VERSION) `Name`object for`Implementation-Version`manifest attribute used for package versioning.          |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [MAIN_CLASS](https://developer.android.com/reference/java/util/jar/Attributes.Name#MAIN_CLASS) `Name`object for`Main-Class`manifest attribute used for launching applications packaged in JAR files.                    |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [MANIFEST_VERSION](https://developer.android.com/reference/java/util/jar/Attributes.Name#MANIFEST_VERSION) `Name`object for`Manifest-Version`manifest attribute.                                                        |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [SEALED](https://developer.android.com/reference/java/util/jar/Attributes.Name#SEALED) `Name`object for`Sealed`manifest attribute used for sealing.                                                                     |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [SIGNATURE_VERSION](https://developer.android.com/reference/java/util/jar/Attributes.Name#SIGNATURE_VERSION) `Name`object for`Signature-Version`manifest attribute used when signing JAR files.                         |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [SPECIFICATION_TITLE](https://developer.android.com/reference/java/util/jar/Attributes.Name#SPECIFICATION_TITLE) `Name`object for`Specification-Title`manifest attribute used for package versioning.                   |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [SPECIFICATION_VENDOR](https://developer.android.com/reference/java/util/jar/Attributes.Name#SPECIFICATION_VENDOR) `Name`object for`Specification-Vendor`manifest attribute used for package versioning.                |
| ` public static final `[Attributes.Name](https://developer.android.com/reference/java/util/jar/Attributes.Name) | [SPECIFICATION_VERSION](https://developer.android.com/reference/java/util/jar/Attributes.Name#SPECIFICATION_VERSION) `Name`object for`Specification-Version`manifest attribute used for package versioning.             |

|                                                                                                                ### Public constructors                                                                                                                ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Name](https://developer.android.com/reference/java/util/jar/Attributes.Name#Name(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` name) ` Constructs a new attribute name using the given string name. |

|                                                                                                                                                 ### Public methods                                                                                                                                                  ||
|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean`                                                            | ` `[equals](https://developer.android.com/reference/java/util/jar/Attributes.Name#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` o) ` Compares this attribute name to another for equality. |
| ` int`                                                                | ` `[hashCode](https://developer.android.com/reference/java/util/jar/Attributes.Name#hashCode())`() ` Computes the hash value for this attribute name.                                                                                        |
| ` `[String](https://developer.android.com/reference/java/lang/String) | ` `[toString](https://developer.android.com/reference/java/util/jar/Attributes.Name#toString())`() ` Returns the attribute name as a String.                                                                                                 |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Fields

### CLASS_PATH

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name CLASS_PATH
```

`Name`object for`Class-Path`manifest attribute.

<br />

**See also:**

- [JAR file specification](https://docs.oracle.com/en/java/javase/17/docs/specs/jar/jar.html#class-path-attribute)  

### CONTENT_TYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name CONTENT_TYPE
```

`Name`object for`Content-Type`manifest attribute.

<br />

### EXTENSION_INSTALLATION

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name EXTENSION_INSTALLATION
```

<br />

**This field was deprecated in API level 26.**   
Extension mechanism is no longer supported.

`Name`object for`Extension-Installation`manifest attribute.

<br />

### EXTENSION_LIST

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name EXTENSION_LIST
```

`Name`object for`Extension-List`manifest attribute used for the extension mechanism that is no longer supported.

<br />

### EXTENSION_NAME

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name EXTENSION_NAME
```

`Name`object for`Extension-Name`manifest attribute used for the extension mechanism that is no longer supported.

<br />

### IMPLEMENTATION_TITLE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name IMPLEMENTATION_TITLE
```

`Name`object for`Implementation-Title`manifest attribute used for package versioning.

<br />

### IMPLEMENTATION_URL

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name IMPLEMENTATION_URL
```

<br />

**This field was deprecated in API level 26.**   
Extension mechanism is no longer supported.

`Name`object for`Implementation-URL`manifest attribute.

<br />

### IMPLEMENTATION_VENDOR

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name IMPLEMENTATION_VENDOR
```

`Name`object for`Implementation-Vendor`manifest attribute used for package versioning.

<br />

### IMPLEMENTATION_VENDOR_ID

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name IMPLEMENTATION_VENDOR_ID
```

<br />

**This field was deprecated in API level 26.**   
Extension mechanism is no longer supported.

`Name`object for`Implementation-Vendor-Id`manifest attribute.

<br />

### IMPLEMENTATION_VERSION

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name IMPLEMENTATION_VERSION
```

`Name`object for`Implementation-Version`manifest attribute used for package versioning.

<br />

### MAIN_CLASS

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name MAIN_CLASS
```

`Name`object for`Main-Class`manifest attribute used for launching applications packaged in JAR files. The`Main-Class`attribute is used in conjunction with the`-jar`command-line option of the`java`application launcher.

<br />

### MANIFEST_VERSION

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name MANIFEST_VERSION
```

`Name`object for`Manifest-Version`manifest attribute. This attribute indicates the version number of the manifest standard to which a JAR file's manifest conforms.

<br />

**See also:**

- [Manifest and Signature Specification](https://docs.oracle.com/en/java/javase/17/docs/specs/jar/jar.html#jar-manifest)  

### SEALED

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name SEALED
```

`Name`object for`Sealed`manifest attribute used for sealing.

<br />

**See also:**

- [Package Sealing](https://docs.oracle.com/en/java/javase/17/docs/specs/jar/jar.html#package-sealing)  

### SIGNATURE_VERSION

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name SIGNATURE_VERSION
```

`Name`object for`Signature-Version`manifest attribute used when signing JAR files.

<br />

**See also:**

- [Manifest and Signature Specification](https://docs.oracle.com/en/java/javase/17/docs/specs/jar/jar.html#jar-manifest)  

### SPECIFICATION_TITLE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name SPECIFICATION_TITLE
```

`Name`object for`Specification-Title`manifest attribute used for package versioning.

<br />

### SPECIFICATION_VENDOR

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name SPECIFICATION_VENDOR
```

`Name`object for`Specification-Vendor`manifest attribute used for package versioning.

<br />

### SPECIFICATION_VERSION

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Attributes.Name SPECIFICATION_VERSION
```

`Name`object for`Specification-Version`manifest attribute used for package versioning.

<br />

## Public constructors

### Name

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Name (String name)
```

Constructs a new attribute name using the given string name.

<br />

|                     Parameters                     ||
|--------|--------------------------------------------|
| `name` | `String`: the attribute string name <br /> |

|                                                                  Throws                                                                   ||
|--------------------------------------------------------------------------------------------------------|-----------------------------------|
| [IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException) | if the attribute name was invalid |
| [NullPointerException](https://developer.android.com/reference/java/lang/NullPointerException)         | if the attribute name was null    |

## Public methods

### equals

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean equals (Object o)
```

Compares this attribute name to another for equality.

<br />

|                 Parameters                  ||
|-----|----------------------------------------|
| `o` | `Object`: the object to compare <br /> |

|                                         Returns                                          ||
|-----------|-------------------------------------------------------------------------------|
| `boolean` | true if this attribute name is equal to the specified attribute object <br /> |

### hashCode

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int hashCode ()
```

Computes the hash value for this attribute name.

<br />

|                     Returns                      ||
|-------|-------------------------------------------|
| `int` | a hash code value for this object. <br /> |

### toString

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String toString ()
```

Returns the attribute name as a String.

<br />

|                                                      Returns                                                      ||
|--------------------------------------------------------------------|-----------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | a string representation of the object. <br /> |