CosPdfBoolean

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

public final class CosPdfBoolean extends CosPdfPrimitive

This class represents boolean type.

Constructors

ConstructorDescription
CosPdfBoolean(boolean value)Initializes a new instance of the PdfBoolean class.

Methods

MethodDescription
getValue()Gets the value.
toCosPdfBoolean()Tries cast this instance to CosPdfBoolean.
toString()Returns a String that represents the current CosPdfBoolean.
hashCode()Get hashcode for current object.
equals(Object obj)Determines that the specified object is equal to the current object.

CosPdfBoolean(boolean value)

public CosPdfBoolean(boolean value)

Initializes a new instance of the PdfBoolean class.

Parameters:

ParameterTypeDescription
valuebooleanif set to true [value].

getValue()

public final boolean getValue()

Gets the value.

Returns: boolean - boolean value.

toCosPdfBoolean()

public CosPdfBoolean toCosPdfBoolean()

Tries cast this instance to CosPdfBoolean.

Returns: CosPdfBoolean - null if instance is not CosPdfBoolean else CosPdfBoolean.

toString()

public String toString()

Returns a String that represents the current CosPdfBoolean.

Returns: java.lang.String - A String that represents the current CosPdfBoolean.

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.