← 返回首页
Function (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Method Summary
  3. Method Details
    1. apply(T)
    2. compose(Function)
    3. andThen(Function)
    4. identity()
Hide sidebar  Show sidebar

Interface Function<T,R>

Type Parameters: T - the type of the input to the function R - the type of the result of the function All Known Subinterfaces: UnaryOperator<T> 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 Function<T,R>
Represents a function that accepts one argument and produces a result.

This is a functional interface whose functional method is apply(Object).

Since: 1.8

Scripting on this page tracks web page traffic, but does not change the content in any way.