com.ibm.commerce.component.bod

Class VerbStepIndexPredicate



  • public class VerbStepIndexPredicate
    extends VerbStepPredicate
    Represents an index predicate. This predicates specifies the index of an element in a java.util.List. An index starts from 0.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright
        See Also:
        Constant Field Values
      • CLASS_NAME

        public static final java.lang.String CLASS_NAME
        Name of this class
    • Constructor Detail

      • VerbStepIndexPredicate

        public VerbStepIndexPredicate(java.lang.Integer index)
        Constructs an instance of this predicate
        Parameters:
        index - the expected index
      • VerbStepIndexPredicate

        public VerbStepIndexPredicate(int index)
        Constructs an instance of this predicate
        Parameters:
        index - the expected index
    • Method Detail

      • evaluate

        public boolean evaluate(java.lang.Object index)
        Evaluates a given index.
        Specified by:
        evaluate in class VerbStepPredicate
        Parameters:
        index - the node that will be tested against the predicate
        Returns:
        true if the given index is the same as the expected index. False if the expected value of the given index is not a non-negative number, or it is not equal to the expected value
        See Also:
        VerbStepPredicate.evaluate(java.lang.Object)