CosPdfBoolean

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

All Implemented Interfaces: ICosPdfPrimitive

public final class CosPdfBoolean extends CosPdfPrimitive

This class represents boolean type.

Constructors

ConstructorDescription
CosPdfBooleanInitializes a new instance of the {@code PdfBoolean} class.

Methods

MethodDescription
equalsDetermines that the specified object is equal to the current object.
getValueGets the value. Value: The value.
hashCodeGet hashcode for current object.
toCosPdfBooleanTries cast this instance to {@code CosPdfBoolean}.
toStringReturns a {@link String} that represents the current {@link CosPdfBoolean}.

CosPdfBoolean

public CosPdfBoolean(boolean value)

Initializes a new instance of the {@code PdfBoolean} class.

Parameters:

ParameterTypeDescription
valueif set to {@code true} [value].

equals

Determines that the specified object is equal to the current object.

getValue

public final boolean getValue()

Gets the value. Value: The value.

Returns: boolean value

hashCode

public int hashCode()

Get hashcode for current object.

Returns: A hash code for current object.

toCosPdfBoolean

public CosPdfBoolean toCosPdfBoolean()

Tries cast this instance to {@code CosPdfBoolean}.

Returns: null if instance is not {@code CosPdfBoolean} else {@code CosPdfBoolean}.

toString

public String toString()

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

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