Interface Callback.SerializableReturningWithArgument<R,​A>

  • Type Parameters:
    R - The return type.
    A - The argument type.
    All Superinterfaces:
    Serializable
    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.

    @FunctionalInterface
    public static interface Callback.SerializableReturningWithArgument<R,​A>
    extends Serializable
    Use this if you need a serializable callback which takes an argument and returns a value.
    Since:
    2.1
    Author:
    Bauke Scholtz
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      R invoke​(A a)
      This method should be invoked by the method where you're passing this callback instance to.
    • Method Detail

      • invoke

        R invoke​(A a)
        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.