View Javadoc

1   package com.atlassian.webdriver.waiter.webdriver.function;
2   
3   import org.openqa.selenium.WebDriver;
4   
5   /**
6    * @since 2.1.0
7    */
8   public class NotFunction implements ConditionFunction
9   {
10      private final ConditionFunction func;
11  
12      public NotFunction(ConditionFunction func)
13      {
14          this.func = func;
15      }
16  
17      public Boolean apply(WebDriver driver)
18      {
19          return !func.apply(driver);
20      }
21  }