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