T
- Type of function argument.R
- Type of function return.public interface Function<T,R>
extends java.io.Serializable
v -> v * 2
String
v -> v.trim()
or v -> String::trim
Modifier and Type | Method and Description |
---|---|
R |
apply(T value)
Apply a function to
value . |
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641