Package com.pd4ml.pdf.cos
Class COSBoolean
- java.lang.Object
-
- com.pd4ml.pdf.cos.COSBase
-
- com.pd4ml.pdf.cos.COSBoolean
-
- All Implemented Interfaces:
COSObjectable
public final class COSBoolean extends COSBase
A PDF boolean object:trueorfalse. Interned to two shared instances.
-
-
Field Summary
Fields Modifier and Type Field Description static COSBooleanFALSEstatic COSBooleanTRUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(ICOSVisitor<T> visitor)booleanequals(java.lang.Object other)booleangetValue()inthashCode()java.lang.StringtoString()static COSBooleanvalueOf(boolean value)-
Methods inherited from class com.pd4ml.pdf.cos.COSBase
getCOSObject, getGenerationNumber, getKey, getObjectNumber, isDirect, resolve, setKey
-
-
-
-
Field Detail
-
TRUE
public static final COSBoolean TRUE
-
FALSE
public static final COSBoolean FALSE
-
-
Method Detail
-
valueOf
public static COSBoolean valueOf(boolean value)
-
getValue
public boolean getValue()
-
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
-
-