Class PdfBoolean

    • Field Detail

      • True

        private static final byte[] True
      • False

        private static final byte[] False
      • value

        private boolean value
    • Constructor Detail

      • PdfBoolean

        public PdfBoolean​(boolean value)
        Store a boolean value
        Parameters:
        value - value to store
      • PdfBoolean

        private PdfBoolean​(boolean value,
                           boolean directOnly)
      • PdfBoolean

        private PdfBoolean()
    • Method Detail

      • getValue

        public boolean getValue()
      • getType

        public byte getType()
        Description copied from class: PdfObject
        Gets object type.
        Specified by:
        getType in class PdfObject
        Returns:
        object type.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • newInstance

        protected PdfObject newInstance()
        Description copied from class: PdfObject
        Creates new instance of object.
        Specified by:
        newInstance in class PdfObject
        Returns:
        new instance of object.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • valueOf

        public static PdfBoolean valueOf​(boolean value)
        Gets PdfBoolean existing static class variable equivalent for given boolean value. Note, returned object will be direct only, which means it is impossible to make in indirect. If required PdfBoolean has to be indirect, use PdfBoolean(boolean) constructor instead.
        Parameters:
        value - boolean variable defining value of PdfBoolean to return.
        Returns:
        existing static PdfBoolean class variable.