java.lang.Object
org.sejda.sambox.cos.COSBase
org.sejda.sambox.cos.COSNumber
org.sejda.sambox.cos.COSFloat
- All Implemented Interfaces:
COSObjectable
This class represents a floating point number in a PDF document.
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(COSVisitor visitor) Visitor pattern for the COS model objectsdoublebooleanfloatinthashCode()intintValue()longtoString()Methods inherited from class org.sejda.sambox.cos.COSNumber
get, idIfAbsentMethods inherited from class org.sejda.sambox.cos.COSBase
getCOSObject, hasId, id
-
Constructor Details
-
COSFloat
public COSFloat(float aFloat) - Parameters:
aFloat- The primitive float object that this object wraps.
-
COSFloat
- Parameters:
aFloat- The primitive float object that this object wraps.- Throws:
IOException- If aFloat is not a float.
-
-
Method Details
-
floatValue
public float floatValue()- Specified by:
floatValuein classCOSNumber- Returns:
- The float value of this object.
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classCOSNumber- Returns:
- The double value of this number.
-
longValue
public long longValue() -
intValue
public int intValue() -
equals
-
hashCode
public int hashCode() -
toString
-
accept
Description copied from class:COSBaseVisitor pattern for the COS model objects- Specified by:
acceptin classCOSBase- Throws:
IOException
-