All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.SwappedBinaryPredicate

java.lang.Object
   |
   +----COM.objectspace.jgl.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.

Version:
2.0.2
Author:
ObjectSpace, Inc.

Constructor Index

 o SwappedBinaryPredicate(BinaryPredicate)
Construct myself with a binary predicate object.

Method Index

 o execute(Object, Object)
Swap the order of operands and return the value of my contained predicate.

Constructors

 o SwappedBinaryPredicate
 public SwappedBinaryPredicate(BinaryPredicate predicate)
Construct myself with a binary predicate object.

Parameters:
predicate - The binary predicate object.

Methods

 o 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