Package ch.njol.util

Interface Callback<R,A>

All Superinterfaces:
Function<A,R>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Deprecated(forRemoval=true) @FunctionalInterface public interface Callback<R,A> extends Function<A,R>
Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    apply(A a)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    run(A arg)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • run

      @Nullable R run(A arg)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • apply

      default R apply(A a)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      apply in interface Function<R,A>