Java.util.function.Function

From NovaOrdis Knowledge Base
Revision as of 18:28, 1 September 2021 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

External

Internal

Overview

@FunctionalInterface
public interface Function<I, O> {

    O apply(I input);

    ....
}

Primitive Type Functions

  • IntFunction<T> a function that receives an int argument and returns an argument of type T.
  • ToIntFunction<T> a function that receives an argument of type T and returns an int.

Composition Methods