Parallel Template Library
PTL™ 4.0
- java.lang.Object
-
- Progeneric.Ptl.Functors.LogicalOr
-
- All Implemented Interfaces:
- IFunc2Arg<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean>
public class LogicalOr
extends java.lang.Object
implements IFunc2Arg<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean>
A binary predicate that performs the logical operation
of disjunction on specified Boolean values.
-
-
Constructor Summary
Constructors
| Constructor and Description |
LogicalOr() |
-
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 disjunction on
specified Boolean values.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LogicalOr
public LogicalOr()
-
Method Detail
-
Call
public java.lang.Boolean Call(java.lang.Boolean arg1,
java.lang.Boolean arg2)
Performs the logical operation of disjunction 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 disjunction to be tested.arg2 - The right operand in the disjunction to be tested.
- Returns:
- True if arg1 is true or arg2 is true; otherwise, false.
Parallel Template Library
PTL™ 4.0
Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.