Interface Callback.ReturningWithArgument<R,​A>

  • Type Parameters:
    R - The return type.
    A - The argument type.
    Enclosing class:
    Callback
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Deprecated(since="4.0",
                forRemoval=true)
    @FunctionalInterface
    public static interface Callback.ReturningWithArgument<R,​A>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Since 4.0. Use Function instead.
    Use this if you need a callback which takes an argument and returns a value.
    Author:
    Bauke Scholtz
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      R invoke​(A a)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method should be invoked by the method where you're passing this callback instance to.
    • Method Detail

      • invoke

        R invoke​(A a)
        Deprecated, for removal: This API element is subject to removal in a future version.
        This method should be invoked by the method where you're passing this callback instance to.
        Parameters:
        a - The callback argument to work with.
        Returns:
        The callback result.