com.ibm.commerce.condition

Class AndListCondition

  • All Implemented Interfaces:
    com.ibm.commerce.base.helpers.Uniquifiable, ConditionConstants, com.ibm.commerce.datatype.Hashable, com.ibm.websphere.cache.Sizeable, java.io.Serializable


    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
        Returns:
        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
        Parameters:
        evaluator - An implementation of the Evaluator interface that is used to evaluate all of the simple and open conditions.
        Returns:
        true if the condition is true.