orbital.logic.functor
Interface Predicate
- All Superinterfaces:
- Functor
- All Known Subinterfaces:
- Predicate.Composite, Type, Type.Composite
- All Known Implementing Classes:
- Closer
public interface Predicate
- extends Functor
A functor that encapsulates a unary predicate P/1.
Like "P(a)" it applies on
- argument of type A.
- returns whether the relation holds as a boolean value.
The set of all predicates (or relations) of type (A) is the power set 2^(A) = 2A.
For any cardinalities of A, it is in fact true that |2A| = 2|A|.
These predicates of 2^(A) have the form:
ρ subset of A
- Author:
- André Platzer
- See Also:
BinaryPredicate,
VoidPredicate- Structure:
- inherit orbital.logic.functor.Functor
|
Method Summary |
boolean |
apply(java.lang.Object arg)
Called to apply the Predicate. |
callTypeDeclaration
static final Functor.Specification callTypeDeclaration
- specification of these functors.
apply
boolean apply(java.lang.Object arg)
- Called to apply the Predicate. Evaluates to
P(a).
- Parameters:
arg - single Object argument
- Returns:
- a boolean.
Copyright © 1996-2006 André Platzer
All Rights Reserved.