Interface Function<T,R>
-
- Type Parameters:
T- the type of the input to the functionR- the type of the result of the function apiNote: It will be replace by jdk-api if p4java use jdk1.8 in future.
public interface Function<T,R>Represents a function that accepts one argument and produces a result. whose functional method isapply(Object).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rapply(T t)Applies this function to the given argument.
-
-
-
Method Detail
-
apply
R apply(T t) throws RequestException
Applies this function to the given argument.- Parameters:
t- the function argument- Returns:
- the function result
- Throws:
RequestException- on error
-
-