public final class CosPdfNumber extends CosPdfPrimitive
This class represents Pdf Number type.
| Constructor and Description |
|---|
CosPdfNumber()
Initializes a new instance of the
CosPdfNumber class. |
CosPdfNumber(double value)
Initializes a new instance of the
CosPdfNumber class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines that the specified object is equal to the current object.
|
double |
getValue()
Gets the value.
|
int |
hashCode()
Get hashcode for current object.
|
CosPdfNumber |
toCosPdfNumber()
Tries cast this instance to
CosPdfNumber. |
String |
toString()
Returns a
String that represents the current CosPdfNumber. |
toCosPdfBoolean, toCosPdfDictionary, toCosPdfName, toCosPdfStringpublic CosPdfNumber()
Initializes a new instance of the CosPdfNumber class.
public CosPdfNumber(double value)
Initializes a new instance of the CosPdfNumber class.
value - The number.public final double getValue()
Gets the value.
Value: The value.public CosPdfNumber toCosPdfNumber()
Tries cast this instance to CosPdfNumber.
toCosPdfNumber in interface ICosPdfPrimitivetoCosPdfNumber in class CosPdfPrimitiveCosPdfNumber else CosPdfNumber.public String toString()
Returns a String that represents the current CosPdfNumber.
toString in interface ICosPdfPrimitivetoString in class ObjectString that represents the current CosPdfNumber.public int hashCode()
Get hashcode for current object.
Copyright © 2025 Aspose. All Rights Reserved.