Package com.pd4ml.pdf.cos
Class COSInteger
- java.lang.Object
-
- com.pd4ml.pdf.cos.COSBase
-
- com.pd4ml.pdf.cos.COSNumber
-
- com.pd4ml.pdf.cos.COSInteger
-
- All Implemented Interfaces:
COSObjectable
public final class COSInteger extends COSNumber
A PDF integer object. Small values are cached/interned similarly toInteger.valueOf(int).
-
-
Field Summary
Fields Modifier and Type Field Description static COSIntegerONEstatic COSIntegerZERO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(ICOSVisitor<T> visitor)doubledoubleValue()booleanequals(java.lang.Object other)floatfloatValue()static COSIntegerget(long value)inthashCode()intintValue()longlongValue()java.lang.StringtoString()-
Methods inherited from class com.pd4ml.pdf.cos.COSBase
getCOSObject, getGenerationNumber, getKey, getObjectNumber, isDirect, resolve, setKey
-
-
-
-
Field Detail
-
ZERO
public static final COSInteger ZERO
-
ONE
public static final COSInteger ONE
-
-
Method Detail
-
get
public static COSInteger get(long value)
-
floatValue
public float floatValue()
- Specified by:
floatValuein classCOSNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classCOSNumber
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
accept
public <T> T accept(ICOSVisitor<T> visitor) throws COSException
- Specified by:
acceptin classCOSBase- Throws:
COSException
-
-