Java.util.function.Function

From NovaOrdis Knowledge Base
Revision as of 19:03, 1 September 2021 by Ovidiu (talk | contribs) (→‎Composition Methods)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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