public class COSFloat extends COSNumber
Modifier and Type | Field and Description |
---|---|
private java.math.BigDecimal |
value |
private java.lang.String |
valueAsString |
Constructor and Description |
---|
COSFloat(float aFloat)
Constructor.
|
COSFloat(java.lang.String aFloat)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method.
|
private void |
checkMinMaxValues() |
double |
doubleValue()
The value of the double object that this one wraps.
|
boolean |
equals(java.lang.Object o) |
float |
floatValue()
The value of the float object that this one wraps.
|
int |
hashCode() |
int |
intValue()
This will get the integer value of this object.
|
long |
longValue()
This will get the long value of this object.
|
private java.lang.String |
removeNullDigits(java.lang.String plainStringValue) |
java.lang.String |
toString() |
void |
writePDF(java.io.OutputStream output)
This will output this string as a PDF object.
|
getCOSObject, isDirect, setDirect
private java.math.BigDecimal value
private java.lang.String valueAsString
public COSFloat(float aFloat)
aFloat
- The primitive float object that this object wraps.public COSFloat(java.lang.String aFloat) throws java.io.IOException
aFloat
- The primitive float object that this object wraps.java.io.IOException
- If aFloat is not a float.private void checkMinMaxValues()
private java.lang.String removeNullDigits(java.lang.String plainStringValue)
public float floatValue()
floatValue
in class COSNumber
public double doubleValue()
doubleValue
in class COSNumber
public long longValue()
public int intValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object accept(ICOSVisitor visitor) throws java.io.IOException
public void writePDF(java.io.OutputStream output) throws java.io.IOException
output
- The stream to write to.java.io.IOException
- If there is an error writing to the stream.