- Type Parameters:
 
T - the type of the input 
- All Implemented Interfaces:
 
Serializable, Function<T,T>, Operation 
public class IdentityFunction<T>
extends Object
implements Function<T,T> 
A 
Function that returns the input argument itself as the result.
 
- See Also:
 
- 
 
- 
Constructor Summary
Constructors
 
- 
Method Summary
Applies this function to the given argument.
 
 
 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
 
- 
Constructor Details
- 
IdentityFunction
public IdentityFunction()
 
 
- 
Method Details
- 
apply
Description copied from interface: Function 
Applies this function to the given argument.
- Specified by:
 
apply in interface Function<T,T> 
- Parameters:
 
input - the input to the function 
- Returns:
 
- the function result