**Inheritance:**
java.lang.Object, com.aspose.pdf.dataeditor.CosPdfPrimitive com.aspose.pdf.dataeditor.CosPdfName, com.aspose.pdf.dataeditor.CosPdfPrimitive, com.aspose.pdf.dataeditor.CosPdfName

**All Implemented Interfaces:**
ICosPdfPrimitive

```
public final class CosPdfName extends CosPdfPrimitive
```

This class represents Pdf Name object.

## Constructors

| Constructor | Description |
| --- | --- |
| [CosPdfName](#CosPdfName-java.lang.String-) | Initializes a new instance of the {@link CosPdfName} class. |

## Methods

| Method | Description |
| --- | --- |
| [equals](#equals-java.lang.Object-) | Determines that the specified object is equal to the current object. |
| [getValue](#getValue--) | Gets the value. Value: The value. |
| [hashCode](#hashCode--) | Get hashcode for current object. |
| [toCosPdfName](#toCosPdfName--) | Tries cast this instance to {@link CosPdfName}. |
| [toString](#toString--) | Returns a {@link String} that represents the current {@link CosPdfName}. |

### CosPdfName {#CosPdfName-java.lang.String-}
Initializes a new instance of the {@link CosPdfName} class.

### equals {#equals-java.lang.Object-}
Determines that the specified object is equal to the current object.

### getValue {#getValue--}
```
public final String getValue()
```

Gets the value. Value: The value.

**Returns:**
String value

### hashCode {#hashCode--}
```
public int hashCode()
```

Get hashcode for current object.

**Returns:**
A hash code for current object.

### toCosPdfName {#toCosPdfName--}
```
public CosPdfName toCosPdfName()
```

Tries cast this instance to {@link CosPdfName}.

**Returns:**
null if instance is not {@link CosPdfName} else {@link CosPdfName}.

### toString {#toString--}
```
public String toString()
```

Returns a {@link String} that represents the current {@link CosPdfName}.

**Returns:**
A {@link String} that represents the current {@link CosPdfName}.
