All Packages Class Hierarchy This Package Previous Next Index
Class COM.objectspace.jgl.predicates.SwappedBinaryPredicate
java.lang.Object
|
+----COM.objectspace.jgl.predicates.SwappedBinaryPredicate
- public final class SwappedBinaryPredicate
- extends Object
- implements BinaryPredicate
SwappedBinaryPredicate is a binary predicate that returns the result of
applying its operands to a BinaryPredicate in the opposite order they
were received.
-
SwappedBinaryPredicate(BinaryPredicate)
- Construct myself with a binary predicate object.
-
execute(Object, Object)
- Swap the order of operands and return the value of my contained predicate.
SwappedBinaryPredicate
public SwappedBinaryPredicate(BinaryPredicate predicate)
- Construct myself with a binary predicate object.
- Parameters:
- predicate - The binary predicate object.
execute
public boolean execute(Object first,
Object second)
- Swap the order of operands and return the value of my contained predicate.
- Parameters:
- first - The first operand.
- second - The second operand.
- Returns:
- predicate.execute( second, first )
All Packages Class Hierarchy This Package Previous Next Index