All Packages Class Hierarchy This Package Previous Next Index
Class COM.objectspace.jgl.predicates.BindFirstPredicate
java.lang.Object
|
+----COM.objectspace.jgl.predicates.BindFirstPredicate
- public final class BindFirstPredicate
- extends Object
- implements UnaryPredicate
BindFirstPredicate is a unary predicate object that allows you to apply a binary
predicate to a predefined value and an operand. The reason that it's called
BindFirstPredicate is that the predefined value is always used as the 1st parameter
to the binary predicate.
- See Also:
- BindFirst, BindSecondPredicate
-
BindFirstPredicate(BinaryPredicate, Object)
- Construct myself with a binary predicate object and a predefined value.
-
execute(Object)
- Perform my binary predicate on the operand using the predefined value as the 1st
parameter and the operand as the 2nd parameter.
BindFirstPredicate
public BindFirstPredicate(BinaryPredicate predicate,
Object value)
- Construct myself with a binary predicate object and a predefined value.
- Parameters:
- predicate - The binary predicate object.
- value - The object to use as the 1st parameter.
execute
public boolean execute(Object object)
- Perform my binary predicate on the operand using the predefined value as the 1st
parameter and the operand as the 2nd parameter.
- Parameters:
- object - The operand.
- Returns:
- predicate( value, object )
All Packages Class Hierarchy This Package Previous Next Index