Interface IFunction<T,R>

Type Parameters:
T - input type
R - result type
All Superinterfaces:
Serializable
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 IFunction<T,R> extends Serializable
Serializable function hook for server-side data-structure operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable R
    apply(T input)
    Apply the function to the supplied input.
  • Method Details

    • apply

      @Nullable R apply(T input)
      Apply the function to the supplied input.
      Parameters:
      input - function input
      Returns:
      function result, possibly null