CosPdfName

Inheritance: java.lang.Object, com.aspose.pdf.utils.publicdata.CosPdfPrimitive

public final class CosPdfName extends CosPdfPrimitive

This class represents Pdf Name object.

Constructors

ConstructorDescription
CosPdfName(String value)Initializes a new instance of the CosPdfName class.

Methods

MethodDescription
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:

ParameterTypeDescription
valuejava.lang.StringThe 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:

ParameterTypeDescription
objjava.lang.ObjectThe object to compare with current object.

Returns: boolean - true if specified object is equal to the current object; otherwise, false.