CosPdfName
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.utils.publicdata.CosPdfPrimitive
public final class CosPdfName extends CosPdfPrimitive
This class represents Pdf Name object.
Constructors
Constructor | Description |
---|---|
CosPdfName(String value) | Initializes a new instance of the CosPdfName class. |
Methods
Method | Description |
---|---|
getValue() | Gets the value. |
toCosPdfName() | Tries cast this instance to CosPdfName. |
toString() | Returns a String that represents the current CosPdfName. |
hashCode() | Get hashcode for current object. |
equals(Object obj) | Determines that the specified object is equal to the current object. |
CosPdfName(String value)
public CosPdfName(String value)
Initializes a new instance of the CosPdfName class.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | The name. |
getValue()
public final String getValue()
Gets the value.
Returns: java.lang.String - boolean value.
toCosPdfName()
public CosPdfName toCosPdfName()
Tries cast this instance to CosPdfName.
Returns: CosPdfName - null if instance is not CosPdfName else CosPdfName.
toString()
public String toString()
Returns a String that represents the current CosPdfName.
Returns: java.lang.String - A String that represents the current CosPdfName.
hashCode()
public int hashCode()
Get hashcode for current object.
Returns: int - A hash code for current object.
equals(Object obj)
public boolean equals(Object obj)
Determines that the specified object is equal to the current object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The object to compare with current object. |
Returns: boolean - true if specified object is equal to the current object; otherwise, false.