Class CosBoolean


  • public class CosBoolean
    extends CosScalar
    Represents a COS Boolean object as defined in section 3.2.1 of the PDF Reference Manual version 1.4.
    • Method Detail

      • getType

        public int getType()
        return the type of this CosObject
        Specified by:
        getType in class CosObject
        Returns:
        one of the t_Mumble static final int values defined above
      • booleanValue

        public boolean booleanValue()
        Returns the value of the boolean.
        Overrides:
        booleanValue in class CosObject
        Returns:
        boolean
      • getValue

        public java.lang.Object getValue()
        Returns the value as an instance of Boolean
        Specified by:
        getValue in class CosObject
        Returns:
        Boolean
      • equals

        public boolean equals​(CosObject value)
        This method returns true if both CosObjects have same boolean value or they are the same objects. Returns false if passed CosObject is not an instance of CosBoolean.
        Specified by:
        equals in class CosObject
        Parameters:
        value -
        Returns:
        boolean