Class AndListCondition

  • All Implemented Interfaces:, ConditionConstants,,,

    public final class AndListCondition
    extends ConditionList
    This class describes a boolean expression that consists of a list of boolean expressions joined by the boolean AND operator.
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • AndListCondition

        public AndListCondition(Condition[] conditions)
        This constructor lets you specify an array of conditions that should be "anded" together.
    • Method Detail

      • clone

        public java.lang.Object clone()
        Description copied from class: Condition
        Returns a clone of this condition object.
        Specified by:
        clone in class Condition
        A clone of this condition object.
      • evaluate

        public boolean evaluate(Evaluator evaluator)
        This method evaluates the "and list" condition. If all of the conditions in the list evaluates to true, then the condition will evaluate to true. Note that the result will be negated if the not property is true.
        Specified by:
        evaluate in class Condition
        evaluator - An implementation of the Evaluator interface that is used to evaluate all of the simple and open conditions.
        true if the condition is true.