com.ibm.commerce.condition

Class OrListCondition

  • 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 OrListCondition
    extends ConditionList
    This class describes a boolean expression that consists of a list of boolean expressions joined by the boolean OR operator.
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • OrListCondition

        public OrListCondition(Condition[] conditions)
        This constructor lets you specify an array of conditions that should be "ored" 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 "or list" condition. If any 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.