orbital.logic.functor
Interface BinaryPredicate
- All Superinterfaces:
- Functor
- All Known Subinterfaces:
- BinaryPredicate.Composite
public interface BinaryPredicate
- extends Functor
A functor that encapsulates the binary predicate P/2
.
Like "P(a,b)"
it applies on
- argument first of type A1.
- argument second of type A2.
- returns whether the relation holds as a boolean value.
The set of all predicates (or relations) of type (A1×A2) is the power set ℘(A1×A2).
These predicates have the form
ρ ⊆ A1 × A2
- Author:
- André Platzer
- See Also:
Relation
,
Predicate
,
Properties of Relations
Method Summary |
boolean |
apply(java.lang.Object first,
java.lang.Object second)
Called to apply the BinaryPredicate. |
callTypeDeclaration
static final Functor.Specification callTypeDeclaration
- specification of these functors.
apply
boolean apply(java.lang.Object first,
java.lang.Object second)
- Called to apply the BinaryPredicate.
P(a,b)
.
- Parameters:
first
- generic Object as first argumentsecond
- generic Object as second argument
- Returns:
- which returns a boolean.
Copyright © 1996-2009 André Platzer
All Rights Reserved.