Class ConstantPredicate

  • All Implemented Interfaces:
    Matchable<ChangeData>

    public class ConstantPredicate
    extends SubmitRequirementPredicate
    A submit requirement predicate (can only be used in submit requirement expressions) that always evaluates to true if the value is equal to "true" or false otherwise.
    • Constructor Detail

      • ConstantPredicate

        public ConstantPredicate​(String value)
    • Method Detail

      • match

        public boolean match​(ChangeData object)
        Description copied from interface: Matchable
        Does this predicate match this object?
      • getCost

        public int getCost()
        Description copied from interface: Matchable
        Returns a cost estimate to run this predicate, higher figures cost more.