Parallel Template Library
PTL™ 4.0
- java.lang.Object
-
- Progeneric.Ptl.Functors.Negate<T>
-
- Type Parameters:
T - The type of elements that are suitable to numeric operations.
- All Implemented Interfaces:
- IFunc1Arg<T,T>
public class Negate<T>
extends java.lang.Object
implements IFunc1Arg<T,T>
A unary function that returns the negative
of an element value that is convertible to T.
-
-
Constructor Summary
Constructors
| Constructor and Description |
Negate(java.lang.Class<T> type)
Constructs a Negate instance from the specified type.
|
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
T |
Call(T arg)
Returns the negative of an element value that
is convertible to T.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Parallel Template Library
PTL™ 4.0
Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.