Parallel Template Library
PTL™ 4.0
- java.lang.Object
-
- Progeneric.Ptl.Functors.Identity<T>
-
- Type Parameters:
T - The type of the arguments and return value.
- All Implemented Interfaces:
- IFunc1Arg<T,T>
public class Identity<T>
extends java.lang.Object
implements IFunc1Arg<T,T>
Defines a unary function object that returns the argument unchanged.
-
-
Constructor Summary
Constructors
| Constructor and Description |
Identity() |
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
T |
Call(T arg)
Returns the argument unchanged.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Identity
public Identity()
Parallel Template Library
PTL™ 4.0
Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.