Interface AppiumFunction<F,​T>

  • Type Parameters:
    F - The input type
    T - The return type
    All Superinterfaces:
    com.google.common.base.Function<F,​T>, java.util.function.Function<F,​T>
    All Known Subinterfaces:
    ExpectedCondition<T>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface AppiumFunction<F,​T>
    extends com.google.common.base.Function<F,​T>, java.util.function.Function<F,​T>
    This is extended version of Function. It is combined with Function. It was designed in order to provide compatibility with the Wait.
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default <V> AppiumFunction<F,​V> andThen​(java.util.function.Function<? super T,​? extends V> after)  
      default <V> AppiumFunction<V,​T> compose​(java.util.function.Function<? super V,​? extends F> before)  
      • Methods inherited from interface com.google.common.base.Function

        apply, equals
    • Method Detail

      • compose

        default <V> AppiumFunction<V,​T> compose​(java.util.function.Function<? super V,​? extends F> before)
        Specified by:
        compose in interface java.util.function.Function<F,​T>
      • andThen

        default <V> AppiumFunction<F,​V> andThen​(java.util.function.Function<? super T,​? extends V> after)
        Specified by:
        andThen in interface java.util.function.Function<F,​T>