Parallel Template Library
PTL™ 4.0
- java.lang.Object
-
- Progeneric.Ptl.Functors.Equal_<T>
-
- Type Parameters:
T - The type of objects to compare.
- All Implemented Interfaces:
- IFunc2Arg<T,T,java.lang.Boolean>
public class Equal_<T extends IEquatable<T>>
extends java.lang.Object
implements IFunc2Arg<T,T,java.lang.Boolean>
A binary predicate that tests whether a value of a
specified type is equal to another value of the same type.
-
-
Constructor Summary
Constructors
| Constructor and Description |
Equal_() |
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
java.lang.Boolean |
Call(T arg1,
T arg2)
Tests whether a value of a specified type is equal to
another value of the same type.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
Call
public java.lang.Boolean Call(T arg1,
T arg2)
Tests whether a value of a specified type is equal to
another value of the same type.
- Specified by:
Call in interface IFunc2Arg<T extends IEquatable<T>,T extends IEquatable<T>,java.lang.Boolean>
- Parameters:
arg1 - The left operand in the equality to be tested.arg2 - The right operand in the equality to be tested.
- Returns:
- True if arg1 equals arg2; otherwise, false.
Parallel Template Library
PTL™ 4.0
Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.