- 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 SummaryConstructors 
- 
Method Summary
Applies this function to the given argument. 
 
 
 
 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
Constructor Details
- 
IdentityFunctionpublic IdentityFunction() 
 
- 
Method Details
- 
applyDescription copied from interface: Function
 Applies this function to the given argument. 
- Specified by:
- applyin interface- Function<T,T>
- Parameters:
- input- the input to the function
- Returns:
- the function result