Java.util.function.Function: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 11: Line 11:
<syntaxhighlight lang='java'>
<syntaxhighlight lang='java'>
@FunctionalInterface
@FunctionalInterface
public interface Function<T,R> {
public interface Function<T, R> {


     R apply(T t);
     R apply(T t);

Revision as of 19:09, 26 March 2018

External

Internal

Overview

@FunctionalInterface
public interface Function<T, R> {

    R apply(T t);

    ....
}

Composition Methods