com.ibm.commerce.condition

Class TrueCondition

  • All Implemented Interfaces:
    ConditionConstants, com.ibm.websphere.cache.Sizeable, java.io.Serializable


    public final class TrueCondition
    extends Condition
    This class describes a boolean expression that always evaluates as true.
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • TrueCondition

        public TrueCondition()
        Default constructor.
    • 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 will evaluate the true condition. A true condition will always return true unless the not property is set to true.
        Specified by:
        evaluate in class Condition
        Parameters:
        evaluator - An implementation of the Evaluator interface.
        Returns:
        true if the condition is true.