Class PsyBoolean

    • Field Detail

      • FALSE

        public static final PsyBoolean FALSE
        A Ψ-boolean constant, representing false.
      • TRUE

        public static final PsyBoolean TRUE
        A Ψ-boolean constant, representing true.
    • Method Detail

      • booleanValue

        public boolean booleanValue()
        Returns a boolean value of this object.
        Returns:
        a boolean value of this object.
      • toSyntaxString

        public String toSyntaxString()
        Specified by:
        toSyntaxString in interface PsyObject
        Returns:
        a string false or true depending on this object value.
      • psyOr

        public PsyBoolean psyOr​(PsyBoolean oBoolean)
        Returns a result of boolean disjunction of this object and given object.
        Specified by:
        psyOr in interface PsyLogical<PsyBoolean>
        Parameters:
        oBoolean - given object.
        Returns:
        a result.
      • psyAnd

        public PsyBoolean psyAnd​(PsyBoolean oBoolean)
        Returns a result of boolean conjunction of this object and given object.
        Specified by:
        psyAnd in interface PsyLogical<PsyBoolean>
        Parameters:
        oBoolean - given object.
        Returns:
        a result.
      • psyXor

        public PsyBoolean psyXor​(PsyBoolean oBoolean)
        Returns a result of boolean exclusive disjunction of this object and given object.
        Specified by:
        psyXor in interface PsyLogical<PsyBoolean>
        Parameters:
        oBoolean - given object.
        Returns:
        a result.
      • psyEq

        public PsyBoolean psyEq​(PsyObject o)
        Returns a result of equality test of this object and given object.
        Specified by:
        psyEq in interface PsyObject
        Returns:
        a result.
      • psyCmp

        public PsyInteger psyCmp​(PsyBoolean oBoolean)
        Description copied from interface: PsyScalar
        Compares this object against given object and returns a Ψ- integer indicating the result of the comparison. Returns negative value if this object is less than given one, zero if this object is equal to given one, and positive value if this object is greater than given one.
        Specified by:
        psyCmp in interface PsyScalar<PsyBoolean>
        Parameters:
        oBoolean - an object with which this object is compared.
        Returns:
        a result of the comparison.
      • psyLt

        public PsyBoolean psyLt​(PsyBoolean oBoolean)
        Description copied from interface: PsyScalar
        Returns a Ψ-boolean object representing the result of “less” comparison of this object and a given object.
        Specified by:
        psyLt in interface PsyScalar<PsyBoolean>
        Parameters:
        oBoolean - an object with which this object is compared.
        Returns:
        a Ψ boolean value indicating if this object is less than given object.
      • psyLe

        public PsyBoolean psyLe​(PsyBoolean oBoolean)
        Description copied from interface: PsyScalar
        Returns a Ψ-boolean object representing the result of “less or equal” comparison of this object and a given object.
        Specified by:
        psyLe in interface PsyScalar<PsyBoolean>
        Parameters:
        oBoolean - an object with which this object is compared.
        Returns:
        a Ψ boolean value indicating if this object is less than or equal to given object.
      • psyGt

        public PsyBoolean psyGt​(PsyBoolean oBoolean)
        Description copied from interface: PsyScalar
        Returns a Ψ-boolean object representing the result of “greater” comparison of this object and a given object.
        Specified by:
        psyGt in interface PsyScalar<PsyBoolean>
        Parameters:
        oBoolean - an object with which this object is compared.
        Returns:
        a Ψ-boolean result of comparison.
      • psyGe

        public PsyBoolean psyGe​(PsyBoolean oBoolean)
        Description copied from interface: PsyScalar
        Returns a Ψ-boolean object representing the result of “greater or equal” comparison of this object and a given object.
        Specified by:
        psyGe in interface PsyScalar<PsyBoolean>
        Parameters:
        oBoolean - an object with which this object is compared.
        Returns:
        a Ψ-boolean result of comparison.
      • hashCode

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

        public static PsyBoolean valueOf​(boolean bool)
        Returns a Ψ-boolean representing the given boolean value.
        Parameters:
        bool - a given value.
        Returns:
        a Ψ-boolean object.