| JGL - The Generic Collection Library for Java |
All Packages Class Hierarchy This Package Previous Next Index
Class com.objectspace.jgl.predicates.UnaryAnd
java.lang.Object
|
+----com.objectspace.jgl.predicates.UnaryAnd
- public final class UnaryAnd
- extends Object
- implements UnaryPredicate
UnaryAnd is a unary predicate that returns true if the result of executing
all unary predicates on given operands is true.
- See Also:
- BinaryAnd
-
UnaryAnd(UnaryPredicate, UnaryPredicate)
- Construct myself with two unary predicate objects.
-
UnaryAnd(UnaryPredicate[])
- Construct myself to use all given predicates for testing.
-
execute(Object)
- Perform my unary predicates on the operand and return true if
all predicates return true.
UnaryAnd
public UnaryAnd(UnaryPredicate p1,
UnaryPredicate p2)
- Construct myself with two unary predicate objects.
- Parameters:
- p1 - A unary predicate object, which should be a predicate.
- p2 - A unary predicate object, which should be a predicate.
UnaryAnd
public UnaryAnd(UnaryPredicate p[])
- Construct myself to use all given predicates for testing.
- Parameters:
- p - An array or UnaryPredicates.
execute
public boolean execute(Object object)
- Perform my unary predicates on the operand and return true if
all predicates return true.
- Parameters:
- object - The operand.
All Packages Class Hierarchy This Package Previous Next Index