# Attributes.Name

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

# Name

```
open class Name
```

|---|----------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                 ||
| ↳ | [java.util.jar.Attributes.Name](https://developer.android.com/reference/kotlin/java/util/jar/Attributes.Name#) |

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

|                                                                                                                           Public constructors                                                                                                                           ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Name](https://developer.android.com/reference/kotlin/java/util/jar/Attributes.Name#Name(kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a new attribute name using the given string name. |

|                                                                                                                                                                  Public methods                                                                                                                                                                   ||
|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/java/util/jar/Attributes.Name#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` Compares this attribute name to another for equality. |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/java/util/jar/Attributes.Name#hashCode())`()` Computes the hash value for this attribute name.                                                                                                  |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)   | [toString](https://developer.android.com/reference/kotlin/java/util/jar/Attributes.Name#toString())`()` Returns the attribute name as a String.                                                                                                           |

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

## Public constructors

### Name

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

```
Name(name: String!)
```

Constructs a new attribute name using the given string name.

|                                                     Parameters                                                      ||
|--------|-------------------------------------------------------------------------------------------------------------|
| `name` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the attribute string name |

|                               Exceptions                                ||
|--------------------------------------|-----------------------------------|
| `java.lang.IllegalArgumentException` | if the attribute name was invalid |
| `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.html#ApiLevels)  

```
open fun equals(other: Any?): Boolean
```

Compares this attribute name to another for equality.

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |
| `o`   | the object to compare                       |

|                                                                           Return                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if this attribute name is equal to the specified attribute object |

### hashCode

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

```
open fun hashCode(): Int
```

Computes the hash value for this attribute name.

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |

### toString

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

```
open fun toString(): String
```

Returns the attribute name as a String.

|                                                          Return                                                          ||
|----------------------------------------------------------------------------------|----------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |

## Properties

### CLASS_PATH

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

```
static val CLASS_PATH: Attributes.Name!
```

`Name`object for`Class-Path`manifest attribute.  
**See Also**

### CONTENT_TYPE

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

```
static val CONTENT_TYPE: Attributes.Name!
```

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

### EXTENSION_INSTALLATION

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

```
static val EXTENSION_INSTALLATION: Attributes.Name!
```

**Deprecated:** *Extension mechanism is no longer supported.*

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

### EXTENSION_LIST

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

```
static val EXTENSION_LIST: Attributes.Name!
```

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

### EXTENSION_NAME

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

```
static val EXTENSION_NAME: Attributes.Name!
```

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

### IMPLEMENTATION_TITLE

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

```
static val IMPLEMENTATION_TITLE: Attributes.Name!
```

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

### IMPLEMENTATION_URL

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

```
static val IMPLEMENTATION_URL: Attributes.Name!
```

**Deprecated:** *Extension mechanism is no longer supported.*

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

### IMPLEMENTATION_VENDOR

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

```
static val IMPLEMENTATION_VENDOR: Attributes.Name!
```

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

### IMPLEMENTATION_VENDOR_ID

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

```
static val IMPLEMENTATION_VENDOR_ID: Attributes.Name!
```

**Deprecated:** *Extension mechanism is no longer supported.*

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

### IMPLEMENTATION_VERSION

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

```
static val IMPLEMENTATION_VERSION: Attributes.Name!
```

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

### MAIN_CLASS

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

```
static val MAIN_CLASS: Attributes.Name!
```

`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.  

### MANIFEST_VERSION

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

```
static val MANIFEST_VERSION: Attributes.Name!
```

`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.  
**See Also**

### SEALED

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

```
static val SEALED: Attributes.Name!
```

`Name`object for`Sealed`manifest attribute used for sealing.  
**See Also**

### SIGNATURE_VERSION

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

```
static val SIGNATURE_VERSION: Attributes.Name!
```

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

### SPECIFICATION_TITLE

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

```
static val SPECIFICATION_TITLE: Attributes.Name!
```

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

### SPECIFICATION_VENDOR

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

```
static val SPECIFICATION_VENDOR: Attributes.Name!
```

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

### SPECIFICATION_VERSION

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

```
static val SPECIFICATION_VERSION: Attributes.Name!
```

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