Package org.jboss.as.clustering.function
Class Functions
- java.lang.Object
-
- org.jboss.as.clustering.function.Functions
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R,T extends R>
Function<T,R>identity()Returns a function that always returns its input argument.
-
-
-
Method Detail
-
identity
public static <R,T extends R> Function<T,R> identity()
Returns a function that always returns its input argument.- Type Parameters:
T- the input type to the functionR- the output type of the function- Returns:
- a function that always returns its input argument
-
-