Parallel Template Library
PTL™ 4.0
- java.lang.Object
-
- Progeneric.Ptl.Functors.LogicalXor
-
- All Implemented Interfaces:
- IFunc2Arg<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean>
public class LogicalXor
extends java.lang.Object
implements IFunc2Arg<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean>
A binary predicate that performs the eXclusive-OR
operation on specified Boolean values.
-
-
Constructor Summary
Constructors
| Constructor and Description |
LogicalXor() |
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
java.lang.Boolean |
Call(java.lang.Boolean arg1,
java.lang.Boolean arg2)
Performs the logical operation of eXclusive-OR on
specified Boolean values.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LogicalXor
public LogicalXor()
-
Method Detail
-
Call
public java.lang.Boolean Call(java.lang.Boolean arg1,
java.lang.Boolean arg2)
Performs the logical operation of eXclusive-OR on
specified Boolean values.
- Specified by:
Call in interface IFunc2Arg<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean>
- Parameters:
arg1 - The left operand in the XOR operation to be tested.arg2 - The right operand in the XOR operation to be tested.
- Returns:
- True if arg1 is not equal to arg2;
false if arg1 equals arg2.
Parallel Template Library
PTL™ 4.0
Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.