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, toCosPdfName, toCosPdfString
public 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.
public CosPdfNumber toCosPdfNumber()
Tries cast this instance to CosPdfNumber
.
toCosPdfNumber
in interface ICosPdfPrimitive
toCosPdfNumber
in class CosPdfPrimitive
CosPdfNumber
else CosPdfNumber
.public String toString()
Returns a String
that represents the current CosPdfNumber
.
toString
in interface ICosPdfPrimitive
toString
in class Object
String
that represents the current CosPdfNumber
.public int hashCode()
Get hashcode for current object.
Copyright © 2023 Aspose. All Rights Reserved.