Class AllMatch

java.lang.Object
dev.comfast.cf.common.conditions.AllMatch
All Implemented Interfaces:
Condition

public class AllMatch extends Object implements Condition
Condition that pass if all sub-conditions are met.
  • Constructor Details

    • AllMatch

      public AllMatch(Condition... conditions)
  • Method Details

    • expect

      public void expect(CfLocator locator)
      Description copied from interface: Condition
      throw if condition not pass
      Specified by:
      expect in interface Condition
    • negate

      public Condition negate(String newName)
      Specified by:
      negate in interface Condition
      Returns:
      negated condition with new name
    • getName

      public String getName()
      Specified by:
      getName in interface Condition
      Returns:
      name of condition
    • isPassIfNotFound

      public boolean isPassIfNotFound()
      true if all conditions allow pass if not found
      Specified by:
      isPassIfNotFound in interface Condition
      Returns:
      should pass if given element not exists