Java.util.function.Function

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

@FunctionalInterface
public interface Function<T, R> {

    R apply(T t);

    ....
}

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