Parallel Template Library
PTL™ 4.0
- java.lang.Object
-
- Progeneric.Ptl.Functors.ProjectSecond<T1,T2>
-
- Type Parameters:
T1 - The first argument type.T2 - The second argument type and the result type.
- All Implemented Interfaces:
- IFunc2Arg<T1,T2,T2>
public class ProjectSecond<T1,T2>
extends java.lang.Object
implements IFunc2Arg<T1,T2,T2>
A binary function object that returns the second
argument unchanged. The first argument is ignored.
-
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
T2 |
Call(T1 arg1,
T2 arg2)
Returns the second argument unchanged.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ProjectSecond
public ProjectSecond()
-
Method Detail
-
Call
public T2 Call(T1 arg1,
T2 arg2)
Returns the second argument unchanged. The first
argument is ignored.
- Specified by:
Call in interface IFunc2Arg<T1,T2,T2>
- Parameters:
arg1 - The first argument that is ignored.arg2 - The second argument that is returned unchanged.
- Returns:
- The second argument unchanged.
Parallel Template Library
PTL™ 4.0
Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.