Interface PsyLogical<T extends PsyLogical<T>>

Type Parameters:
T - a type of the second operand at binary operation.
All Superinterfaces:
PsyObject
All Known Subinterfaces:
PsyBitwise<T>, PsyIntegral
All Known Implementing Classes:
PsyBigInteger, PsyBitArray, PsyBoolean, PsyInteger

@Type("logical") public interface PsyLogical<T extends PsyLogical<T>> extends PsyObject
The representation of logical, a type of object that is an operand of logical operation. This interface declares methods for logical negation, disjunction, conjunction and exclusive disjunction.
  • Field Details

  • Method Details

    • psyNot

      PsyLogical<T> psyNot()
      Returns a result of logical negation of this object.
      Returns:
      a result of logical negation of this object
    • psyOr

      PsyLogical<T> psyOr(T oLogical)
      Returns a result of logical disjunction of this object and given object.
      Parameters:
      oLogical - given object.
      Returns:
      a result of logical disjunction of this object and given object
    • psyAnd

      PsyLogical<T> psyAnd(T oLogical)
      Returns a result of logical conjunction of this object and given object.
      Parameters:
      oLogical - given object.
      Returns:
      a result of logical conjunction of this object and given object
    • psyXor

      PsyLogical<T> psyXor(T oLogical)
      Returns a result of logical exclusive disjunction of this object and given object.
      Parameters:
      oLogical - given object.
      Returns:
      a result of logical exclusive disjunction of this object and given object